Don't eat the env, add PORT

This commit is contained in:
Ani Betts
2024-11-26 18:08:43 +01:00
parent d69d67cb64
commit 1f28b4474c

View File

@@ -51,11 +51,11 @@ async function main() {
...(command ? [`--env`, command] : []), ...(command ? [`--env`, command] : []),
...(mcpServerArgs ? ["--args", mcpServerArgs.join(" ")] : []), ...(mcpServerArgs ? ["--args", mcpServerArgs.join(" ")] : []),
], ],
{ env: { PORT: SERVER_PORT }, signal: abort.signal }, { env: { ...process.env, PORT: SERVER_PORT }, signal: abort.signal },
); );
const client = spawnPromise("node", [inspectorClientPath], { const client = spawnPromise("node", [inspectorClientPath], {
env: { PORT: CLIENT_PORT }, env: { ...process.env, PORT: CLIENT_PORT },
signal: abort.signal, signal: abort.signal,
}); });