fix(middleware): exclude push-sw.js from locale redirects

This commit is contained in:
2026-01-13 12:51:36 +01:00
parent 57003532be
commit b305c4563f

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).*)", "/((?!_next|api|public|manifest|icon|file|globe|next|vercel|window|push-sw.js).*)",
], ],
}; };