From a9adb410d0a42fc1e3d91b6f7a57dd9349055c0d Mon Sep 17 00:00:00 2001 From: Carlos Escalante Date: Sat, 4 Jul 2026 14:42:38 -0600 Subject: [PATCH] Raise frontend build heap cap to 2048MB 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) --- frontend/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 4d231be..8ba2fba 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -22,7 +22,9 @@ WORKDIR /app COPY --from=deps /app/node_modules ./node_modules COPY . . # 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 # Production: Hono serves dist/ + /api/copilotkit on port 3000