fix: revert dynamic matcher - Next.js requires static config
This commit is contained in:
@@ -45,7 +45,7 @@ export default function middleware(request: NextRequest) {
|
|||||||
export const config = {
|
export const config = {
|
||||||
matcher: [
|
matcher: [
|
||||||
"/",
|
"/",
|
||||||
`/${SUPPORTED_LOCALES.join("|")}/:path*`,
|
"/(sr|en|de|fr)/:path*",
|
||||||
"/((?!api|_next|_vercel|.*\\..*).*)",
|
"/((?!api|_next|_vercel|.*\\..*).*)",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user