Run daemon dev diagnostics on workers

This commit is contained in:
Mohamed Boudra
2026-05-20 09:36:09 +07:00
parent a1a5119bc5
commit 8a6bdb2d01
2 changed files with 18 additions and 17 deletions
+1 -14
View File
@@ -8,21 +8,8 @@ dotenv.config({
});
const daemonRunnerEntry = fileURLToPath(new URL("./supervisor-entrypoint.ts", import.meta.url));
const inspectArg = process.env.PASEO_NODE_INSPECT ?? "--inspect";
const inspectArgs =
inspectArg === "0" || inspectArg === "false" || inspectArg === "off" ? [] : [inspectArg];
const supervisorArgs = [
...inspectArgs,
"--heapsnapshot-near-heap-limit=3",
"--max-old-space-size=3072",
"--report-on-fatalerror",
"--report-directory=/tmp/paseo-reports",
...process.execArgv,
daemonRunnerEntry,
"--dev",
...process.argv.slice(2),
];
const supervisorArgs = [...process.execArgv, daemonRunnerEntry, "--dev", ...process.argv.slice(2)];
const supervisor = spawn(process.execPath, supervisorArgs, {
stdio: "inherit",