Skip to content

Commit

Permalink
[code-infra] Use experimental.cpus to control amount of export work…
Browse files Browse the repository at this point in the history
…ers in Next.js (#41132)
  • Loading branch information
Janpot authored Feb 16, 2024
1 parent 36523fa commit e0e722d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ const pkgContent = fs.readFileSync(path.resolve(workspaceRoot, 'package.json'),
const pkg = JSON.parse(pkgContent);

export default withDocsInfra({
experimental: {
workerThreads: true,
cpus: 3,
},
webpack: (config, options) => {
const plugins = config.plugins.slice();

Expand Down

0 comments on commit e0e722d

Please sign in to comment.