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.
This commit is contained in:
2026-02-25 09:36:57 +01:00
parent cfde81b8de
commit d9073c29bc

View File

@@ -25,5 +25,5 @@ export default auth((req) => {
}); });
export const config = { export const config = {
matcher: ["/((?!_next/static|_next/image|favicon.ico).*)"], matcher: ["/((?!_next/static|_next/image|favicon.ico|.*\\.(?:svg|png|jpg|jpeg|gif|webp|ico)$).*)"],
}; };