Commit a115a3a
committed
fix(docs): pin Node heap to 8 GB for the VitePress production build
The 44-project docfx expansion generates ~2145 pages and the VitePress
production build exceeds Node's default 4.2 GB heap, exiting 134 on
ubuntu-latest. The Docs site workflow sets NODE_OPTIONS at the job
level; the build-test-coverage workflow does not — so the
RouteCheckTests OneTimeSetUp invocation of npm run build OOM-aborted
there.
Bake the heap setting into the npm script itself by invoking
node --max-old-space-size=8192 against the vitepress bin. This avoids
shell-prefix env syntax that would break on Windows, avoids adding
cross-env as a dependency, and ensures every caller — workflow, test
fixture, manual invocation — inherits the heap setting.1 parent 4f1f6a6 commit a115a3a
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
0 commit comments