Fix orchestrator to inherit env vars when spawning modes
This commit is contained in:
@@ -88,8 +88,8 @@ async function startMode(mode: string): Promise<boolean> {
|
||||
cmd: [process.execPath, 'run', serverPath],
|
||||
cwd: modePath,
|
||||
env: {
|
||||
// Force mode service to bind to shared port
|
||||
PORT: String(SHARED_PORT),
|
||||
...process.env, // Inherit all env vars (secrets, etc.)
|
||||
PORT: String(SHARED_PORT), // Force mode service to bind to shared port
|
||||
},
|
||||
stdout: 'pipe',
|
||||
stderr: 'pipe',
|
||||
|
||||
Reference in New Issue
Block a user