chore: add note

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei
2024-08-16 17:14:16 +08:00
parent a5922e0071
commit 940db3fb35

View File

@@ -1,5 +1,5 @@
const { cpus } = require('os')
const { execSync } = require('child_process')
const { cpus } = require('node:os')
const { execSync } = require('node:child_process')
const nodePath = execSync(`npm root --quiet -g`, { encoding: 'utf-8' }).split(
'\n',
)[0]
@@ -21,6 +21,9 @@ module.exports = {
NODE_PATH: nodePath,
MX_ENCRYPT_KEY: process.env.MX_ENCRYPT_KEY,
PORT: process.env.PORT,
// NOTE: if OOM happens, try to use jemalloc
// https://blog.csdn.net/qq_21567385/article/details/135322697
// LD_PRELOAD: '/usr/lib/x86_64-linux-gnu/libjemalloc.so',
},
},
],