mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-10-22 05:52:20 +00:00
Improve #ec2bf1a95d6c45c093f68df832bc6bcbdd372a5a
This commit is contained in:
1 parent
ec2bf1a95d
commit
e305ecf571
1 file changed
+1
-1
@@ -47,7 +47,7 @@ async function build(reason) {
|
||||
rimraf.sync('dist');
|
||||
const env = {...process.env};
|
||||
const _600mb = 629145600;
|
||||
if (_600mb > os.totalmem()) {
|
||||
if (_600mb > os.totalmem() && !env.NODE_OPTIONS) {
|
||||
// Prevent OOM on tsc compile for system with low memory
|
||||
// https://github.com/Koenkk/zigbee2mqtt/issues/12034
|
||||
env.NODE_OPTIONS = '--max_old_space_size=256';
|
||||
|
||||
Reference in new issue
Block a user