From af8c442bd1346a225098554e23ba2a6d17229355 Mon Sep 17 00:00:00 2001 From: elpatron Date: Tue, 13 Jan 2026 13:09:01 +0100 Subject: [PATCH] fix(middleware): exclude sw.js and workbox from redirects --- middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware.ts b/middleware.ts index 3d65931..0bf2d2f 100644 --- a/middleware.ts +++ b/middleware.ts @@ -25,6 +25,6 @@ export function middleware(request: NextRequest) { export const config = { matcher: [ // 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).*)", ], };