Spaces:
Sleeping
Sleeping
fix(auth): web/proxy.ts
Browse files- web/proxy.ts +6 -1
web/proxy.ts
CHANGED
|
@@ -47,5 +47,10 @@ export async function proxy(request: NextRequest) {
|
|
| 47 |
}
|
| 48 |
|
| 49 |
export const config = {
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
};
|
|
|
|
| 47 |
}
|
| 48 |
|
| 49 |
export const config = {
|
| 50 |
+
// FIX v4.3: Match ALL routes so auth cookies are refreshed on every page load.
|
| 51 |
+
// Without this, navigating to / or other non-dashboard pages doesn't refresh
|
| 52 |
+
// the Supabase session cookie, causing auth to break on page reload.
|
| 53 |
+
matcher: [
|
| 54 |
+
"/((?!_next/static|_next/image|favicon.ico|.*\\.(?:svg|png|jpg|jpeg|gif|webp|ico)$).*)",
|
| 55 |
+
],
|
| 56 |
};
|