Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Apr 12, 2022
1 parent 4165d05 commit 686320e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ const getEnv = (key: string) => {

const mergeWithEnvVariables = createDefu((obj: Record<string, any>, key: string, _value, namespace) => {
// key: { subKey } can be overridden by KEY_SUB_KEY`
const override = getEnv(namespace ? `${namespace}_${key}` : key)
const override = getEnv(namespace ? `${namespace}.${key}` : key)
if (override !== undefined) {
obj[key] = override
return true
// Do not return `true` to allow overrding both top level keys and sub-keys
}
})

Expand Down

0 comments on commit 686320e

Please sign in to comment.