Skip to content

Commit d2acae3

Browse files
committed
Add case for CircleCI for thread count
1 parent 1312aaf commit d2acae3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/app/config/webpack.common.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ const publicPath = SANDBOX_ONLY || __DEV__ ? '/' : getHost.default() + '/';
2525
let threads = 1;
2626

2727
try {
28-
threads = Math.max(1, require('os').cpus().length - 1);
28+
if (process.env.CIRCLE_CI) {
29+
threads = 2;
30+
} else {
31+
threads = Math.max(1, require('os').cpus().length - 1);
32+
}
2933
} catch (e) {
3034
threads = 3;
3135
}

0 commit comments

Comments
 (0)