feat: add plan selection onboarding screen after signup

This commit is contained in:
2026-09-13 21:30:58 +05:30
parent 5dc45bb90e
commit 2438ec55d4
3 changed files with 248 additions and 3 deletions

View File

@@ -19,9 +19,16 @@ export function proxy(request: NextRequest) {
}
}
// Protect /onboarding route
if (path.startsWith('/onboarding')) {
if (!token) {
return NextResponse.redirect(new URL('/login', request.url));
}
}
return NextResponse.next();
}
export const config = {
matcher: ['/dashboard/:path*', '/admin/:path*']
matcher: ['/dashboard/:path*', '/admin/:path*', '/onboarding/:path*', '/onboarding']
};