From 4d09299ccd213c0da960d03740fd661f8e18143d Mon Sep 17 00:00:00 2001 From: Jan Potoms <2109932+Janpot@users.noreply.github.com> Date: Fri, 16 Feb 2024 13:44:37 +0100 Subject: [PATCH] [code-infra] Use `experimental.cpus` to control amount of export workers in Next.js Port https://github.com/mui/material-ui/pull/41132 Signed-off-by: Jan Potoms <2109932+Janpot@users.noreply.github.com> --- docs/next.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/next.config.js b/docs/next.config.js index 7079ae08557f7..1404e387994c9 100644 --- a/docs/next.config.js +++ b/docs/next.config.js @@ -13,6 +13,10 @@ const { LANGUAGES, LANGUAGES_SSR } = require('./config'); const workspaceRoot = path.join(__dirname, '../'); module.exports = 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: {