Skip to content

Commit

Permalink
chore: fix merge error
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Nov 28, 2022
1 parent 665ccb2 commit 017c018
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/vite/src/node/env.ts
Expand Up @@ -36,10 +36,17 @@ export function loadEnv(
)

// let environment variables use each other
expand({
parsed,
const expandParsed = expand({
parsed: {
...(process.env as any),
...parsed
},
// prevent process.env mutation
ignoreProcessEnv: true
}).parsed!

Object.keys(parsed).forEach((key) => {
parsed[key] = expandParsed[key]
})

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

0 comments on commit 017c018

Please sign in to comment.