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:
Arnaud
2026-07-09 03:22:35 +02:00
parent 08ab9ac71f
commit 292c7d6722
+1 -1
View File
@@ -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/).*)",
],
};