From 05607bb1bc7ed1b99b20d6185dd1b9f458a662de Mon Sep 17 00:00:00 2001 From: gupta-sahil01 <01guptasahil@gmail.com> Date: Sun, 26 Jul 2026 16:10:38 -0700 Subject: [PATCH] fix(frontend): raise ng serve heap limit to avoid OOM on low-RAM machines The start script relied on Node's default V8 heap (~2.2 GB on 8 GB RAM), which ng serve exceeds during (re)builds and crashes with an out-of-memory error. Mirror the build script's --max-old-space-size=8192 so the dev server survives on lower-RAM machines. Closes #6859 --- frontend/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/package.json b/frontend/package.json index fd511f20f9a..f8d72dfae1a 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -6,7 +6,7 @@ }, "license": "Apache-2.0", "scripts": { - "start": "concurrently --kill-others \"npx y-websocket\" \"ng serve\"", + "start": "concurrently --kill-others \"npx y-websocket\" \"node --max-old-space-size=8192 ./node_modules/@angular/cli/bin/ng serve\"", "build": "node build-version.js && node --max-old-space-size=8192 ./node_modules/@angular/cli/bin/ng build --configuration=production --progress=false --source-map=false", "build:ci": "node build-version.js && node --max-old-space-size=8192 ./node_modules/nx/dist/bin/nx.js build --configuration=production --progress=false --source-map=false", "test": "ng test --watch=false",