From afc9f69defd7008227ca1790d2d3b17f3e8c4a13 Mon Sep 17 00:00:00 2001 From: Jakob Wennberg Date: Wed, 18 Feb 2026 11:27:41 +0100 Subject: [PATCH] Minor < fix --- middleware.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/middleware.ts b/middleware.ts index acf65e4c..21ae0c2b 100644 --- a/middleware.ts +++ b/middleware.ts @@ -13,8 +13,8 @@ export const config = { * - _next/image (image optimization files) * - favicon.ico (favicon file) * - api (API routes - they handle their own auth) - * Feel free to modify this pattern to include more paths. + * - Static assets (images, scripts, manifest, icons, etc.) */ - '/((?!_next/static|_next/image|favicon.ico|api|.*\\.(?:svg|png|jpg|jpeg|gif|webp)$).*)', + '/((?!_next/static|_next/image|favicon.ico|api|sw\\.js|sw-register\\.js|manifest\\.json|icons/|.*\\.(?:svg|png|jpg|jpeg|gif|webp|ico|js|json)$).*)', ], }