feat: mise à jour de la configuration de production et amélioration des variables d'environnement

This commit is contained in:
Puechberty Arthur
2026-04-22 23:52:48 +02:00
parent 3d6a5c6a0f
commit bcd95fceec
4 changed files with 34 additions and 31 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ export const RTL_LOCALES = ["ar"] as const;
export const routing = defineRouting({
locales: [...APP_LOCALES],
defaultLocale: "en",
localePrefix: "always",
localePrefix: "as-needed",
localeDetection: true,
});
+3 -2
View File
@@ -1,9 +1,10 @@
import createMiddleware from "next-intl/middleware";
import { routing } from "./i18n/routing";
export default createMiddleware(routing);
export const config = {
matcher: ["/((?!api|_next|_vercel|.*\\..*).*)"],
matcher: [
"/((?!api|auth|_next|_vercel|.*\\..*).*)"
],
};