fix issues

This commit is contained in:
2026-01-01 17:49:25 +01:00
parent 9958053462
commit 9005a8327c

View File

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