From 77c9548111e2ef9a1755d1383ae1b0272188b5fa Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Mon, 4 May 2026 14:46:56 +0200 Subject: [PATCH] perf: cap node heap size --- scripts/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run.sh b/scripts/run.sh index fc6e80ba4..0c72dce10 100644 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -41,7 +41,7 @@ else REDIS_PID=$! fi -node apps/nextjs/server.js & +NODE_OPTIONS="--max-old-space-size=${NEXTJS_HEAP_SIZE:-256}" node apps/nextjs/server.js & NEXTJS_PID=$! # Function to handle SIGTERM and shut down services