fix(middleware): exclude sw.js and workbox from redirects

This commit is contained in:
2026-01-13 13:09:01 +01:00
parent b305c4563f
commit af8c442bd1

View File

@@ -25,6 +25,6 @@ export function middleware(request: NextRequest) {
export const config = { export const config = {
matcher: [ matcher: [
// Skip all internal paths (_next) // Skip all internal paths (_next)
"/((?!_next|api|public|manifest|icon|file|globe|next|vercel|window|push-sw.js).*)", "/((?!_next|api|public|manifest|icon|file|globe|next|vercel|window|push-sw.js|sw.js|workbox).*)",
], ],
}; };