mirror of
https://github.com/arthur-pbty/flint.git
synced 2026-08-02 04:37:57 +02:00
feat: mise à jour de la configuration de production et amélioration des variables d'environnement
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
|
||||
@@ -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|.*\\..*).*)"
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user