From 292c7d6722318bf0ff6ce39de398d682e6889c29 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Thu, 9 Jul 2026 03:22:35 +0200 Subject: [PATCH] fix: favicon and PWA assets blocked by auth middleware MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- apps/web/proxy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/proxy.ts b/apps/web/proxy.ts index f676179..224517b 100644 --- a/apps/web/proxy.ts +++ b/apps/web/proxy.ts @@ -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/).*)", ], };