Update rebuild-app.js set GC

This commit is contained in:
Webysther Sperandio 2025-03-27 09:48:48 +01:00 committed by GitHub
parent b229387b78
commit a5b1c47785
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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