Removes locale altogehter

@see https://github.com/vercel/next.js/issues/29000
This commit is contained in:
zomars committed 2022-10-14 13:26:30 -06:00
1 parent 7708ee83a1
commit 11ffdccb4a
1 file changed
-8
-8
View File
@@ -14,14 +14,9 @@ const withTM = require("next-transpile-modules")([
"@calcom/ui", "@calcom/ui",
]); ]);
const { withAxiom } = require("next-axiom"); const { withAxiom } = require("next-axiom");
const { i18n } = require("./next-i18next.config");
module.exports = withAxiom( module.exports = withAxiom(
withTM({ withTM({
i18n: {
...i18n,
localeDetection: false,
},
async rewrites() { async rewrites() {
return { return {
afterFiles: [ afterFiles: [
@@ -29,13 +24,11 @@ module.exports = withAxiom(
{ {
source: "/v:version/:rest*", source: "/v:version/:rest*",
destination: "/api/v:version/:rest*", destination: "/api/v:version/:rest*",
locale: false,
}, },
// This redirects requests to api/v*/ to /api/ passing version as a query parameter. // This redirects requests to api/v*/ to /api/ passing version as a query parameter.
{ {
source: "/api/v:version/:rest*", source: "/api/v:version/:rest*",
destination: "/api/:rest*?version=:version", destination: "/api/:rest*?version=:version",
locale: false,
}, },
], ],
fallback: [ fallback: [
@@ -44,7 +37,6 @@ module.exports = withAxiom(
{ {
source: "/:path*", source: "/:path*",
destination: `/api/:path*`, destination: `/api/:path*`,
locale: false,
}, },
], ],
}; };