From 384821de33ba7ea993417dd470f7dc538c3cc90f Mon Sep 17 00:00:00 2001 From: lorentz Date: Mon, 13 Apr 2026 02:58:02 +0000 Subject: [PATCH] Fix: exclude static image files from auth middleware matcher --- ondeck/src/middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ondeck/src/middleware.ts b/ondeck/src/middleware.ts index bd63678..94bce61 100644 --- a/ondeck/src/middleware.ts +++ b/ondeck/src/middleware.ts @@ -71,6 +71,6 @@ export const config = { * - _next/image (image optimization files) * - favicon.ico (favicon file) */ - '/((?!api/auth|_next/static|_next/image|favicon.ico).*)', + '/((?!api/auth|_next/static|_next/image|favicon.ico|.*\\.png|.*\\.webp|.*\\.svg|.*\\.jpg|.*\\.ico).*)', ], }