From 3db6ccda2dcbf320c2ed9e1f2560ad7cf6340e30 Mon Sep 17 00:00:00 2001 From: Webysther Sperandio Date: Thu, 27 Mar 2025 09:41:09 +0100 Subject: [PATCH 1/3] Update tsconfig.json to support incremental --- tsconfig.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tsconfig.json b/tsconfig.json index fa2a5b19..f5bf64d1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,7 @@ { "compilerOptions": { + "incremental": true, + "tsBuildInfoFile": "/app/.tsbuildinfo", "target": "esnext", "module": "esnext", "strict": false, From b229387b787985a589103c19ab854a65e7c8dbe9 Mon Sep 17 00:00:00 2001 From: Webysther Sperandio Date: Thu, 27 Mar 2025 09:42:20 +0100 Subject: [PATCH 2/3] Update vue.config.js to use disk and less memory --- vue.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vue.config.js b/vue.config.js index 0e4df226..3178e9dd 100644 --- a/vue.config.js +++ b/vue.config.js @@ -96,5 +96,8 @@ module.exports = { devServer, chainWebpack: config => { config.module.rules.delete('svg'); + config.cache({ + type: 'filesystem', + }); }, }; From a5b1c47785ca1622ee676d6b15d64bc9997151b7 Mon Sep 17 00:00:00 2001 From: Webysther Sperandio Date: Thu, 27 Mar 2025 09:48:48 +0100 Subject: [PATCH 3/3] 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