From 11ffdccb4ab6d901ecc16dcaceb0fa648ce86038 Mon Sep 17 00:00:00 2001 From: zomars Date: Fri, 14 Oct 2022 13:26:30 -0600 Subject: [PATCH] Removes locale altogehter @see https://github.com/vercel/next.js/issues/29000 --- next.config.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/next.config.js b/next.config.js index 8c56d42d09..1031c0a949 100644 --- a/next.config.js +++ b/next.config.js @@ -14,14 +14,9 @@ const withTM = require("next-transpile-modules")([ "@calcom/ui", ]); const { withAxiom } = require("next-axiom"); -const { i18n } = require("./next-i18next.config"); module.exports = withAxiom( withTM({ - i18n: { - ...i18n, - localeDetection: false, - }, async rewrites() { return { afterFiles: [ @@ -29,13 +24,11 @@ module.exports = withAxiom( { source: "/v:version/:rest*", destination: "/api/v:version/:rest*", - locale: false, }, // This redirects requests to api/v*/ to /api/ passing version as a query parameter. { source: "/api/v:version/:rest*", destination: "/api/:rest*?version=:version", - locale: false, }, ], fallback: [ @@ -44,7 +37,6 @@ module.exports = withAxiom( { source: "/:path*", destination: `/api/:path*`, - locale: false, }, ], };