chore: Do not generate pages per language at build time (#17227)
This commit is contained in:
1 parent
1ee4fa0906
commit
f22d585c7d
2 files changed
+3
No files matched your search
@@ -116,6 +116,7 @@ const GeneralView = ({ localeProp, user, travelSchedules, revalidatePage }: Gene
|
|||||||
|
|
||||||
if (res.locale) {
|
if (res.locale) {
|
||||||
window.calNewLocale = res.locale;
|
window.calNewLocale = res.locale;
|
||||||
|
document.cookie = `calNewLocale=${res.locale}; path=/`;
|
||||||
}
|
}
|
||||||
await revalidatePage();
|
await revalidatePage();
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -182,6 +182,8 @@ const nextConfig = {
|
|||||||
},
|
},
|
||||||
i18n: {
|
i18n: {
|
||||||
...i18n,
|
...i18n,
|
||||||
|
defaultLocale: "en",
|
||||||
|
locales: ["en"],
|
||||||
localeDetection: false,
|
localeDetection: false,
|
||||||
},
|
},
|
||||||
productionBrowserSourceMaps: false,
|
productionBrowserSourceMaps: false,
|
||||||
|
|||||||
Reference in new issue
Block a user