🔀 Merge pull request #1836 from webysther/master

Memory usage improvements
This commit is contained in:
Alicia Sykes 2025-03-29 11:25:54 +00:00 committed by GitHub
commit 3dffc3339c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 1 deletions

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

View File

@ -1,5 +1,7 @@
{
"compilerOptions": {
"incremental": true,
"tsBuildInfoFile": "/app/.tsbuildinfo",
"target": "esnext",
"module": "esnext",
"strict": false,

View File

@ -96,5 +96,8 @@ module.exports = {
devServer,
chainWebpack: config => {
config.module.rules.delete('svg');
config.cache({
type: 'filesystem',
});
},
};