perf: bound runtime memory and storage usage

This commit is contained in:
whyour
2026-08-16 16:29:06 +08:00
parent 31f78e4d1f
commit 276dfc2382
30 changed files with 1350 additions and 68 deletions
+5 -1
View File
@@ -1,3 +1,5 @@
const isContainer = process.env.QL_CONTAINER === 'true';
module.exports = {
apps: [
{
@@ -7,7 +9,9 @@ module.exports = {
wait_ready: true,
listen_timeout: 5000,
source_map_support: true,
time: true,
time: !isContainer,
out_file: isContainer ? '/proc/1/fd/1' : undefined,
error_file: isContainer ? '/proc/1/fd/2' : undefined,
script: 'static/build/app.js',
env: {
http_proxy: '',