From d9073c29bc1752bd9d2e54b0db1e82a2d7961083 Mon Sep 17 00:00:00 2001 From: Froidefond Julien Date: Wed, 25 Feb 2026 09:36:57 +0100 Subject: [PATCH] fix: update middleware matcher to exclude additional image formats - Enhanced the matcher configuration to exclude SVG, PNG, JPG, JPEG, GIF, WEBP, and ICO file types from middleware processing, improving asset handling. --- src/middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware.ts b/src/middleware.ts index cfbe5f5..0fc5630 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -25,5 +25,5 @@ export default auth((req) => { }); export const config = { - matcher: ["/((?!_next/static|_next/image|favicon.ico).*)"], + matcher: ["/((?!_next/static|_next/image|favicon.ico|.*\\.(?:svg|png|jpg|jpeg|gif|webp|ico)$).*)"], };