Skip to content

Commit

Permalink
[docs-infra] Move CPU to shared config
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Apr 14, 2024
1 parent 8103785 commit e8fcbcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 0 additions & 4 deletions docs/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ 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
2 changes: 2 additions & 0 deletions docs/nextConfigDocsInfra.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ function withDocsInfra(nextConfig) {
experimental: {
scrollRestoration: true,
esmExternals: false,
workerThreads: true,
cpus: 3,
...nextConfig.experimental,
},
eslint: {
Expand Down

0 comments on commit e8fcbcf

Please sign in to comment.