Skip to content

Commit bcaaf30

Browse files
committed
fix(webapp): raise the Node heap for the Remix production build
The webapp production build (build:remix) ran with the default Node heap and could exhaust it while bundling the client and SSR output, failing with an out-of-memory error. It now runs with the same 8GB limit the typecheck and server-start scripts already use.
1 parent 25a505b commit bcaaf30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/webapp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"sideEffects": false,
66
"scripts": {
77
"build": "run-s build:** && pnpm run upload:sourcemaps",
8-
"build:remix": "remix vite:build",
8+
"build:remix": "cross-env NODE_OPTIONS=\"--max-old-space-size=8192\" remix vite:build",
99
"build:server": "esbuild --platform=node --format=cjs ./server.ts --outdir=build --sourcemap",
1010
"build:otlpworker": "esbuild --platform=node --format=cjs --bundle ./app/v3/otlpTransformWorker.ts --outfile=build/otlpTransformWorker.cjs --sourcemap",
1111
"build:sentry": "esbuild --platform=node --format=cjs --outbase=. ./sentry.server.ts ./app/utils/sentryTraceContext.server.ts --outdir=build --sourcemap",

0 commit comments

Comments
 (0)