From 2765b65acd5310b7b6e6d501126e78bc78b1eb5c Mon Sep 17 00:00:00 2001 From: Adam Moussa <166072409+amoussa1229@users.noreply.github.com> Date: Fri, 26 Jun 2026 18:54:10 -0400 Subject: [PATCH] fix(ci): raise Node heap for the SPA build (vite OOM'd at ~2 GB) (#19) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The build-artifacts SPA build hit Node's default ~2 GB heap cap and aborted (JS heap OOM, exit 134) — the same memory-hungry vite build that needed an 8 GB swapfile on-box. The runner has ~16 GB, so set NODE_OPTIONS=--max-old-space-size=8192 on both build steps. --- .github/workflows/build-artifacts.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build-artifacts.yml b/.github/workflows/build-artifacts.yml index 4da0d95a..4d288b92 100644 --- a/.github/workflows/build-artifacts.yml +++ b/.github/workflows/build-artifacts.yml @@ -67,6 +67,10 @@ jobs: bun-version: latest - name: Build SPA (vite -> ui/.output/public) working-directory: ui + # vite's bundle exceeds Node's default ~2 GB heap (the build that needed an + # 8 GB swapfile on-box); the runner has ~16 GB, so lift the heap cap. + env: + NODE_OPTIONS: "--max-old-space-size=8192" run: | bun install --frozen-lockfile bun run build @@ -101,6 +105,10 @@ jobs: bun-version: latest - name: Build SPA (vite -> ui/.output/public) working-directory: ui + # vite's bundle exceeds Node's default ~2 GB heap (the build that needed an + # 8 GB swapfile on-box); the runner has ~16 GB, so lift the heap cap. + env: + NODE_OPTIONS: "--max-old-space-size=8192" run: | bun install --frozen-lockfile bun run build