From a5b1c47785ca1622ee676d6b15d64bc9997151b7 Mon Sep 17 00:00:00 2001 From: Webysther Sperandio Date: Thu, 27 Mar 2025 09:48:48 +0100 Subject: [PATCH] Update rebuild-app.js set GC --- services/rebuild-app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/rebuild-app.js b/services/rebuild-app.js index b3ce046c..2b748c2d 100644 --- a/services/rebuild-app.js +++ b/services/rebuild-app.js @@ -5,7 +5,7 @@ const { exec } = require('child_process'); module.exports = () => new Promise((resolve, reject) => { - const buildProcess = exec('npm run build'); // Trigger the build command + const buildProcess = exec('NODE_OPTIONS="--max-old-space-size=512" npm run build'); // Trigger the build command let output = ''; // Will store console output