From 8e2b1c06accfc1e621e0964baf9278b86f09cbff Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Tue, 10 Sep 2024 11:26:21 +0800 Subject: [PATCH] workerThreads --- next.config.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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,