mirror of https://github.com/kortix-ai/suna.git
try fix build AGAIN
This commit is contained in:
parent
9a81a68f81
commit
a669512dbf
|
@ -15,7 +15,7 @@ export default function PersonalAccountPage() {
|
|||
|
||||
// Use client-side navigation instead of server redirect
|
||||
useEffect(() => {
|
||||
router.replace('/dashboard');
|
||||
router.replace('/dashboard/agents');
|
||||
}, [router]);
|
||||
|
||||
// Return a minimal loading state until redirect happens
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
import { NextRequest, NextResponse } from 'next/server';
|
||||
import { validateSession } from './lib/supabase/middleware';
|
||||
|
||||
export const middleware = (request: NextRequest) => {
|
||||
return validateSession(request);
|
||||
};
|
||||
|
||||
// Apply middleware to all routes
|
||||
export const config = {
|
||||
matcher: ['/((?!_next/static|_next/image|favicon.ico|api/webhooks).*)'],
|
||||
};
|
Loading…
Reference in New Issue