Skip to content

Commit

Permalink
fix: should set ignoreProcessEnv
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing committed Oct 7, 2022
1 parent 9c4e697 commit ed8f0a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/vite/src/node/env.ts
Expand Up @@ -52,7 +52,9 @@ export function loadEnv(

// let environment variables use each other
expand({
parsed
parsed,
// prevent process.env mutation
ignoreProcessEnv: true
})

// only keys that start with prefix are exposed to client
Expand Down

0 comments on commit ed8f0a6

Please sign in to comment.