Skip to content

Commit

Permalink
fix: respect env provided via config
Browse files Browse the repository at this point in the history
close #417
  • Loading branch information
yyx990803 committed Jun 19, 2020
1 parent 2db1a77 commit b0b91b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,10 @@ export async function resolveConfig(
}
}

config.env = loadEnv(mode, config.root || cwd)
config.env = {
...config.env,
...loadEnv(mode, config.root || cwd)
}
debug(`config resolved in ${Date.now() - start}ms`)

config.__path = resolvedPath
Expand Down

0 comments on commit b0b91b1

Please sign in to comment.