mirror of
https://github.com/escalante29/WealthySmart.git
synced 2026-07-17 09:08:46 +02:00
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) <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user