From 93acfb7cfc6ebae9980b38d5403fac2307718df5 Mon Sep 17 00:00:00 2001 From: Markus Thielker Date: Mon, 2 Dec 2024 17:45:40 +0100 Subject: [PATCH] NORY-9: exclude service-worker from middleware --- authentication/src/middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentication/src/middleware.ts b/authentication/src/middleware.ts index d7cd027..c4c06ed 100644 --- a/authentication/src/middleware.ts +++ b/authentication/src/middleware.ts @@ -41,5 +41,5 @@ export async function middleware(request: NextRequest) { } export const config = { - matcher: '/((?!api|_next/static|_next/image|favicon.png|sitemap.xml|robots.txt).*)', + matcher: '/((?!api|_next/static|_next/image|favicon.png|sitemap.xml|robots.txt|sw.js).*)', };