diff --git a/src/middleware.ts b/src/middleware.ts index d64daf6..1df27ab 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -36,7 +36,7 @@ export async function middleware(request: NextRequest) { return NextResponse.redirect(new URL("/onboarding", request.url)); } - !!session + return !!session ? NextResponse.redirect(new URL("/", request.url)) : NextResponse.next(); }