fix(middleware): exclude /_img proxy path from locale redirects

- Exclude /_img from middleware matcher to prevent locale redirects
- Clean commit for middleware fix
This commit is contained in:
2026-02-19 00:43:36 +01:00
parent 067b4aa05b
commit 61a0b3b935

View File

@@ -95,7 +95,8 @@ export default function middleware(request: NextRequest) {
export const config = {
matcher: [
'/((?!api|_next/static|_next/image|favicon.ico|manifest.webmanifest|.*\\.(?:svg|png|jpg|jpeg|gif|webp|pdf|txt|vcf|xml)$).*)',
'/((?!api|_next/static|_next/image|_img|favicon.ico|manifest.webmanifest|.*\\.(?:svg|png|jpg|jpeg|gif|webp|pdf|txt|vcf|xml)$).*)',
'/(de|en)/:path*',
'/(de|en)/:path*',
],
};