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();