fix: exclude manifest.json, sw.js, textures from auth middleware

PWA manifest and service worker must be accessible without the access
cookie for browser installability checks to work.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-04-10 17:29:54 -04:00
parent fdb1efcb1e
commit c5aa2f0e40
1 changed files with 1 additions and 1 deletions

View File

@ -20,6 +20,6 @@ export const config = {
* - /_next (Next.js internals) * - /_next (Next.js internals)
* - /favicon.ico, /icon*, /apple-icon*, /og-image* (static assets) * - /favicon.ico, /icon*, /apple-icon*, /og-image* (static assets)
*/ */
"/((?!gate|api/verify-code|api/version|_next|favicon\\.ico|icon|apple-icon|og-image).*)", "/((?!gate|api/verify-code|api/version|_next|favicon\\.ico|icon|apple-icon|og-image|manifest\\.json|sw\\.js|textures/).*)",
], ],
} }