Raise frontend build heap cap to 2048MB
All checks were successful
Deploy to VPS / test (push) Successful in 1m27s
Deploy to VPS / deploy (push) Successful in 1m49s

The UI revamp pushed rollup's peak past the 1536MB cap and the prod
image build OOM'd. Verified locally: fails at 1536, builds at 2048.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Carlos Escalante
2026-07-04 14:42:38 -06:00
parent 37c2b18300
commit a9adb410d0

View File

@@ -22,7 +22,9 @@ WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules COPY --from=deps /app/node_modules ./node_modules
COPY . . COPY . .
# Cap node heap so a build on a small VPS can't OOM-kill neighbours. # Cap node heap so a build on a small VPS can't OOM-kill neighbours.
ENV NODE_OPTIONS=--max-old-space-size=1536 # 1536 stopped being enough at the 2026-07 UI revamp (cmdk, day-picker,
# chart wrappers); rollup now peaks between 1.5G and 2G.
ENV NODE_OPTIONS=--max-old-space-size=2048
RUN corepack enable && pnpm build RUN corepack enable && pnpm build
# Production: Hono serves dist/ + /api/copilotkit on port 3000 # Production: Hono serves dist/ + /api/copilotkit on port 3000