Don't eat the env, add PORT
This commit is contained in:
@@ -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,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user