mirror of https://github.com/kortix-ai/suna.git
try this pls
This commit is contained in:
parent
a669512dbf
commit
37d253d13e
|
@ -71,7 +71,7 @@ export const validateSession = async (request: NextRequest) => {
|
|||
// https://supabase.com/docs/guides/auth/server-side/nextjs
|
||||
const { data: { user } } = await supabase.auth.getUser();
|
||||
|
||||
const protectedRoutes = ['/dashboard', '/invitation'];
|
||||
const protectedRoutes = ['/invitation'];
|
||||
|
||||
if (!user && protectedRoutes.some(path => request.nextUrl.pathname.startsWith(path))) {
|
||||
// redirect to /auth
|
||||
|
|
Loading…
Reference in New Issue