fix(middleware): exclude sw.js and workbox from redirects
This commit is contained in:
@@ -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).*)",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user