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