Skip to content

Commit ad400e2

Browse files
committed
add source for vercel build cpus
1 parent 435606b commit ad400e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/generate-md-exports.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ async function createWork() {
3737
// On a 16-core machine, 8 workers were optimal (and slightly faster than 16)
3838
// Putting 4 as the minimum as Vercel has 4 cores per builder and it may help
3939
// us cut down some of the time there.
40+
// Source: https://vercel.com/docs/limits#build-container-resources
4041
const numWorkers = Math.max(Math.floor(cpus().length / 2), 4);
4142
const workerTasks = new Array(numWorkers).fill(null).map(() => []);
4243

0 commit comments

Comments
 (0)