Skip to content

Commit

Permalink
Merge pull request tangly1024#2718 from tangly1024/release/4.7.0
Browse files Browse the repository at this point in the history
workerThreads
  • Loading branch information
tangly1024 authored Sep 10, 2024
2 parents 99e3cdd + 8e2b1c0 commit 74fef37
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ function scanSubdirectories(directory) {

const nextConfig = {
output: process.env.EXPORT ? 'export' : undefined,
staticPageGenerationTimeout: 120,
// 多语言, 在export时禁用
i18n: process.env.EXPORT
? undefined
Expand Down Expand Up @@ -204,9 +205,7 @@ const nextConfig = {
return config
},
experimental: {
scrollRestoration: true,
workerThreads: false,
cpus: 1
scrollRestoration: true
},
exportPathMap: async function (
defaultPathMap,
Expand Down

0 comments on commit 74fef37

Please sign in to comment.