We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cf15e7 commit 799ae61Copy full SHA for 799ae61
packages/homepage/gatsby-node.js
@@ -256,6 +256,13 @@ exports.onCreateWebpackConfig = ({
256
},
257
];
258
259
+ if (process.env.CIRCLECI && config.optimization) {
260
+ // eslint-disable-next-line no-console
261
+ console.log('Setting new parallel option for CircleCI');
262
+ // CircleCI has 32cpu cores, but only 2 for us. os.cpu().length gives back 32, which always results in OOM
263
+ config.optimization.minimizer[0].options.parallel = 2;
264
+ }
265
+
266
// This will completely replace the webpack config with the modified object.
267
actions.replaceWebpackConfig(config);
268
};
0 commit comments