Skip to content

Commit f1401b1

Browse files
committed
Apply process env after defaults for UI mode, too
1 parent f514857 commit f1401b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ const createTransport = async (req: express.Request): Promise<Transport> => {
5959
if (transportType === "stdio") {
6060
const command = query.command as string;
6161
const origArgs = shellParseArgs(query.args as string) as string[];
62-
const queryEnv = query.env ? JSON.parse(query.env as string) : {};
63-
const env = { ...process.env, ...defaultEnvironment, ...queryEnv };
62+
const queryEnv = query.env ? JSON.parse(query.env as string) : {};
63+
const env = { ...defaultEnvironment, ...process.env, ...queryEnv };
6464

6565
const { cmd, args } = findActualExecutable(command, origArgs);
6666

0 commit comments

Comments
 (0)