mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-26 13:19:34 +07:00
The changes include modifying the configuration file, package.json file, and several page files. The fallback language is added, React suspense is disabled, strict mode is enabled, and dependencies are updated. The getStaticProps function in index.page.tsx is replaced with getServerSideProps.
18 lines
443 B
JavaScript
18 lines
443 B
JavaScript
const i18n = require('./.i18nrc');
|
|
|
|
/** @type {import('next-i18next').UserConfig} */
|
|
module.exports = {
|
|
debug: process.env.NODE_ENV === 'development',
|
|
fallbackLng: {
|
|
default: ['en'],
|
|
zh_TW: ['zh_CN'],
|
|
},
|
|
i18n: {
|
|
defaultLocale: i18n.entryLocale,
|
|
locales: [i18n.entryLocale, ...i18n.outputLocales],
|
|
},
|
|
react: { useSuspense: false },
|
|
reloadOnPrerender: process.env.NODE_ENV === 'development',
|
|
strictMode: true,
|
|
};
|