feat: add plan selection onboarding screen after signup
This commit is contained in:
@@ -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']
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user