fix: favicon and PWA assets blocked by auth middleware
proxy.ts's matcher excluded favicon.ico but not icon.svg, the PWA manifest, or the service worker — logged-out requests for any of them got 307-redirected to /login instead of the actual asset, so browsers silently gave up on the tab icon (and PWA install/offline support was broken the same way). Exclude the same static-asset set favicon.ico already had. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -34,6 +34,6 @@ export default proxy;
|
||||
|
||||
export const config = {
|
||||
matcher: [
|
||||
"/((?!_next/static|_next/image|favicon.ico|public/).*)",
|
||||
"/((?!_next/static|_next/image|favicon.ico|icon.svg|icon-192.svg|icon-512.svg|manifest.webmanifest|sw.js|public/).*)",
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user