Fix: Allow all routes without locale prefix

This commit is contained in:
Neo
2026-03-03 17:54:51 +00:00
parent a055bc7096
commit 0ede4b8866

View File

@@ -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|.*\\\\..*).*)"]
};