workerThreads

This commit is contained in:
tangly1024.com
2024-09-10 11:26:21 +08:00
parent e5b4ff7343
commit 8e2b1c06ac

View File

@@ -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,