From 0ede4b8866bf1d8239b0f64118f29fe7448071d2 Mon Sep 17 00:00:00 2001 From: Neo Date: Tue, 3 Mar 2026 17:54:51 +0000 Subject: [PATCH] Fix: Allow all routes without locale prefix --- src/middleware.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/middleware.ts b/src/middleware.ts index 87994d0..dc9b4ba 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -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|.*\\\\..*).*)"] };