fix(auth): restore middleware, fix setup redirect loop, and add next.config rewrites proxying Supabase requests
All checks were successful
Staging Build / build (push) Successful in 3m27s

This commit is contained in:
DanielS
2026-07-03 10:57:22 +02:00
parent 99f859cde3
commit f914e9cdf1
3 changed files with 19 additions and 1 deletions

View File

@@ -55,6 +55,7 @@ export async function updateSession(request: NextRequest) {
request.nextUrl.pathname !== "/" &&
request.nextUrl.pathname !== "/impressum" &&
request.nextUrl.pathname !== "/datenschutz" &&
request.nextUrl.pathname !== "/setup" &&
!user &&
!request.nextUrl.pathname.startsWith("/login") &&
!request.nextUrl.pathname.startsWith("/auth")