From 9005a8327c5f825149f47cc74c35a5bad9217f69 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Thu, 1 Jan 2026 17:49:25 +0100 Subject: [PATCH] fix issues --- apps/website/middleware.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/website/middleware.ts b/apps/website/middleware.ts index 062f99f2c..7e3323af0 100644 --- a/apps/website/middleware.ts +++ b/apps/website/middleware.ts @@ -21,9 +21,11 @@ export function middleware(request: NextRequest) { } // Always allow static assets and API routes (API handles its own auth) + // Also allow /media/ routes which are proxied to the API if ( pathname.startsWith('/_next/') || pathname.startsWith('/api/') || + pathname.startsWith('/media/') || pathname.match(/\.(svg|png|jpg|jpeg|gif|webp|ico|css|js)$/) ) { return NextResponse.next();