From e0e722dedcca370421478078c4eb985b1a08764b Mon Sep 17 00:00:00 2001 From: Jan Potoms <2109932+Janpot@users.noreply.github.com> Date: Fri, 16 Feb 2024 13:24:51 +0100 Subject: [PATCH] [code-infra] Use `experimental.cpus` to control amount of export workers in Next.js (#41132) --- docs/next.config.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/next.config.mjs b/docs/next.config.mjs index 14def7cc34e9a0..87531b1a2cf1c8 100644 --- a/docs/next.config.mjs +++ b/docs/next.config.mjs @@ -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();