bump node max-old-space

This commit is contained in:
Ben Senescu 2026-06-24 13:24:11 -04:00
parent 31eb147bb5
commit 23e7eea4c2
2 changed files with 8 additions and 2 deletions

View File

@ -8,4 +8,5 @@ coverage
*.log *.log
Dockerfile Dockerfile
.env .env
.env.local .env.*
!.env.example

View File

@ -15,4 +15,9 @@ COPY . .
EXPOSE 3001 EXPOSE 3001
CMD ["sh", "-c", "pnpm run db:migrate:local && pnpm run build && pnpm exec vite preview --host 0.0.0.0 --port ${PORT:-3001}"] # The build MUST run at container start, not image-build time: AUTH_MODE (and the
# other client envs) are inlined into the client bundle by `vite build`, and the
# self-hoster only chooses AUTH_MODE at runtime via Compose. Building here lets
# that runtime value bake into the bundle. NODE_OPTIONS raises the V8 heap ceiling
# so the SSR build of ~7400 modules doesn't OOM under Node's ~2GB default.
CMD ["sh", "-c", "pnpm run db:migrate:local && NODE_OPTIONS=--max-old-space-size=4096 pnpm run build && pnpm exec vite preview --host 0.0.0.0 --port ${PORT:-3001}"]