Skip to content

Commit 6323be3

Browse files
committed
chore(build): raise node heap to 8GB for next build type-check
Next.js's type-check worker OOMs at the default 4GB heap on Node 23 for this project's type graph size. Bumps the heap to 8GB only for the `next build` invocation inside `bun run build`. Docker builds are unaffected — `next.config.ts` sets `typescript.ignoreBuildErrors: true` when DOCKER_BUILD=1, which skips the type-check pass entirely. This only fixes local `bun run build`. No functional code changes. Made-with: Cursor
1 parent 03a6dc6 commit 6323be3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sim/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"load:workflow:baseline": "BASE_URL=${BASE_URL:-http://localhost:3000} WARMUP_DURATION=${WARMUP_DURATION:-10} WARMUP_RATE=${WARMUP_RATE:-2} PEAK_RATE=${PEAK_RATE:-8} HOLD_DURATION=${HOLD_DURATION:-20} bunx artillery run scripts/load/workflow-concurrency.yml",
1717
"load:workflow:waves": "BASE_URL=${BASE_URL:-http://localhost:3000} WAVE_ONE_DURATION=${WAVE_ONE_DURATION:-10} WAVE_ONE_RATE=${WAVE_ONE_RATE:-6} QUIET_DURATION=${QUIET_DURATION:-5} WAVE_TWO_DURATION=${WAVE_TWO_DURATION:-15} WAVE_TWO_RATE=${WAVE_TWO_RATE:-8} WAVE_THREE_DURATION=${WAVE_THREE_DURATION:-20} WAVE_THREE_RATE=${WAVE_THREE_RATE:-10} bunx artillery run scripts/load/workflow-waves.yml",
1818
"load:workflow:isolation": "BASE_URL=${BASE_URL:-http://localhost:3000} ISOLATION_DURATION=${ISOLATION_DURATION:-30} TOTAL_RATE=${TOTAL_RATE:-9} WORKSPACE_A_WEIGHT=${WORKSPACE_A_WEIGHT:-8} WORKSPACE_B_WEIGHT=${WORKSPACE_B_WEIGHT:-1} bunx artillery run scripts/load/workflow-isolation.yml",
19-
"build": "bun run build:sandbox-bundles && next build",
19+
"build": "bun run build:sandbox-bundles && NODE_OPTIONS='--max-old-space-size=8192' next build",
2020
"build:sandbox-bundles": "bun run ./lib/execution/sandbox/bundles/build.ts",
2121
"start": "next start",
2222
"prepare": "cd ../.. && bun husky",

0 commit comments

Comments
 (0)