Apply process env after defaults for UI mode, too
This commit is contained in:
parent
f514857a34
commit
f1401b1436
1 changed files with 2 additions and 2 deletions
|
|
@ -59,8 +59,8 @@ const createTransport = async (req: express.Request): Promise<Transport> => {
|
|||
if (transportType === "stdio") {
|
||||
const command = query.command as string;
|
||||
const origArgs = shellParseArgs(query.args as string) as string[];
|
||||
const queryEnv = query.env ? JSON.parse(query.env as string) : {};
|
||||
const env = { ...process.env, ...defaultEnvironment, ...queryEnv };
|
||||
const queryEnv = query.env ? JSON.parse(query.env as string) : {};
|
||||
const env = { ...defaultEnvironment, ...process.env, ...queryEnv };
|
||||
|
||||
const { cmd, args } = findActualExecutable(command, origArgs);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue