fix(middleware): correctly include infrastructure routes in matcher for bypass

This commit is contained in:
2026-02-13 00:24:43 +01:00
parent 3119199a8b
commit a68edcd349

View File

@@ -74,5 +74,5 @@ export default function middleware(request: NextRequest) {
export const config = {
// Match only internationalized pathnames
matcher: ['/((?!api|_next|_vercel|stats|errors|health|.*\\..*).*)', '/', '/(de|en)/:path*'],
matcher: ['/((?!api|_next|_vercel|.*\\..*).*)', '/', '/(de|en)/:path*'],
};