fix: ensure next response for signed-out users

This commit is contained in:
Aidan 2025-07-09 18:32:17 -04:00
parent 85f9414fa7
commit 647932b76f

View file

@ -18,6 +18,8 @@ export async function middleware(request: NextRequest) {
if (sessionToken) {
return NextResponse.redirect(new URL('/dashboard', request.url));
} else {
return NextResponse.next();
}
} else if (!isProtectedRoute) {
return NextResponse.next();