try this pls

This commit is contained in:
Adam Cohen Hillel 2025-04-18 00:52:21 +01:00
parent a669512dbf
commit 37d253d13e
1 changed files with 1 additions and 1 deletions

View File

@ -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