Fix orchestrator to inherit env vars when spawning modes

This commit is contained in:
2026-01-21 04:18:53 +00:00
parent 0b76a4b119
commit bd7842799c
+2 -2
View File
@@ -88,8 +88,8 @@ async function startMode(mode: string): Promise<boolean> {
cmd: [process.execPath, 'run', serverPath], cmd: [process.execPath, 'run', serverPath],
cwd: modePath, cwd: modePath,
env: { env: {
// Force mode service to bind to shared port ...process.env, // Inherit all env vars (secrets, etc.)
PORT: String(SHARED_PORT), PORT: String(SHARED_PORT), // Force mode service to bind to shared port
}, },
stdout: 'pipe', stdout: 'pipe',
stderr: 'pipe', stderr: 'pipe',