diff --git a/ModeSwitch/backend/orchestrator.ts b/ModeSwitch/backend/orchestrator.ts index 097bdba..a702b30 100644 --- a/ModeSwitch/backend/orchestrator.ts +++ b/ModeSwitch/backend/orchestrator.ts @@ -88,8 +88,8 @@ async function startMode(mode: string): Promise { 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',