diff --git a/src/middleware.ts b/src/middleware.ts index c13311719..69ac2d265 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -20,5 +20,6 @@ export function middleware(request: NextRequest) { // Applies this middleware only to specific paths export const config = { - matcher: '/((?!api|static|.*\\..*|_next).*)', + matcher: + '/((?!api|static|_next|favicon\\.ico|.*\\.(?:png|jp?eg|gif|webp|svg|ico|riv)).*)', };