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