fix: revert dynamic matcher - Next.js requires static config

This commit is contained in:
Unchained
2026-03-24 11:54:22 +02:00
parent 03becb6ce7
commit 5ee3ab6713

View File

@@ -45,7 +45,7 @@ export default function middleware(request: NextRequest) {
export const config = {
matcher: [
"/",
`/${SUPPORTED_LOCALES.join("|")}/:path*`,
"/(sr|en|de|fr)/:path*",
"/((?!api|_next|_vercel|.*\\..*).*)",
],
};