File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ function createStdioTransport(options: TransportOptions): Transport {
32
32
const defaultEnv = getDefaultEnvironment ( ) ;
33
33
34
34
const env : Record < string , string > = {
35
- ...processEnv ,
36
35
...defaultEnv ,
36
+ ...processEnv ,
37
37
} ;
38
38
39
39
const { cmd : actualCommand , args : actualArgs } = findActualExecutable (
Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ const createTransport = async (req: express.Request): Promise<Transport> => {
184
184
const command = query . command as string ;
185
185
const origArgs = shellParseArgs ( query . args as string ) as string [ ] ;
186
186
const queryEnv = query . env ? JSON . parse ( query . env as string ) : { } ;
187
- const env = { ...process . env , ...defaultEnvironment , ...queryEnv } ;
187
+ const env = { ...defaultEnvironment , ...process . env , ...queryEnv } ;
188
188
189
189
const { cmd, args } = findActualExecutable ( command , origArgs ) ;
190
190
You can’t perform that action at this time.
0 commit comments