Fix: Allow all routes without locale prefix
This commit is contained in:
@@ -4,8 +4,9 @@ import { locales } from "./i18n";
|
|||||||
export default createMiddleware({
|
export default createMiddleware({
|
||||||
locales,
|
locales,
|
||||||
defaultLocale: "sr",
|
defaultLocale: "sr",
|
||||||
|
localePrefix: "always"
|
||||||
});
|
});
|
||||||
|
|
||||||
export const config = {
|
export const config = {
|
||||||
matcher: ["/", "/(en|sr)/:path*"],
|
matcher: ["/((?!api|_next|.*\\\\..*).*)"]
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user