try fix build AGAIN

This commit is contained in:
Adam Cohen Hillel 2025-04-18 00:48:16 +01:00
parent 9a81a68f81
commit a669512dbf
2 changed files with 12 additions and 1 deletions

View File

@ -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

View File

@ -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).*)'],
};