Open source alternative to Semrush and Ahrefs
TypeScript backlink-analysisgoogle-search-console-mcpkeyword-researchmcpseoseo-agentseo-auditseo-automationseo-skillsseo-toolssite-audit
bump node max-old-space
Ben Senescu23e7eea4c24f
diff --git a/.dockerignore b/.dockerignoreindex cdfdf137..75a4d696 100644--- a/.dockerignore+++ b/.dockerignore@@ -8,4 +8,5 @@ coverage*.logDockerfile.env-.env.local+.env.*+!.env.examplediff --git a/Dockerfile.selfhost b/Dockerfile.selfhostindex bb0b6e75..020c7ef8 100644--- a/Dockerfile.selfhost+++ b/Dockerfile.selfhost@@ -15,4 +15,9 @@ COPY . .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}"]