Commit 97ec444
Fold CI workers cap into parseIntegerEnv default
The post-hoc `if (process.env.CI && env == null) config.workersCount = 2`
block mutated an already-constructed config and used a narrower
definition of "unset" (`== null`) than parseIntegerEnv's own check
(treats "" as unset too). Folding the CI default into the second
argument of parseIntegerEnv:
workersCount: parseIntegerEnv('RENDERER_WORKERS_COUNT',
process.env.CI ? 2 : 3,
{ min: 0 })
keeps the same behaviour for explicit values, uses one definition of
"unset" consistently, and drops the mutation.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 0eb94af commit 97ec444
1 file changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | 46 | | |
0 commit comments