diff --git a/next.config.js b/next.config.js index 5486ee4f3ee..2f306b11e2d 100644 --- a/next.config.js +++ b/next.config.js @@ -81,6 +81,7 @@ function scanSubdirectories(directory) { const nextConfig = { output: process.env.EXPORT ? 'export' : undefined, + staticPageGenerationTimeout: 120, // 多语言, 在export时禁用 i18n: process.env.EXPORT ? undefined @@ -204,9 +205,7 @@ const nextConfig = { return config }, experimental: { - scrollRestoration: true, - workerThreads: false, - cpus: 1 + scrollRestoration: true }, exportPathMap: async function ( defaultPathMap,