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 (mui#12095)

Signed-off-by: Jan Potoms <2109932+Janpot@users.noreply.github.com>
  • Loading branch information
Janpot authored and thomasmoon committed Sep 6, 2024
1 parent 198c7ab commit 4b476ef
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 @@ -32,6 +32,10 @@ const chartsPkg = loadPkg('./packages/x-charts');
const treeViewPkg = loadPkg('./packages/x-tree-view');

export default withDocsInfra({
experimental: {
workerThreads: true,
cpus: 3,
},
// Avoid conflicts with the other Next.js apps hosted under https://mui.com/
assetPrefix: process.env.DEPLOY_ENV === 'development' ? undefined : '/x',
env: {
Expand Down

0 comments on commit 4b476ef

Please sign in to comment.