gaurv007 commited on
Commit
a276998
·
verified ·
1 Parent(s): 6614a2a

fix(auth): web/proxy.ts

Browse files
Files changed (1) hide show
  1. 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
- matcher: ["/dashboard-pages/:path*", "/auth/:path*", "/admin/:path*"],
 
 
 
 
 
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
  };