Skip to content

Commit

Permalink
fix: allow overriding nested variables (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Apr 12, 2022
1 parent aa660c7 commit d7bfc96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const mergeWithEnvVariables = createDefu((obj: Record<string, any>, key: string,
const override = getEnv(namespace ? `${namespace}.${key}` : key)
if (override !== undefined) {
obj[key] = override
// Do not return `true` to allow overrding both top level keys and sub-keys
return true
}
})

Expand Down

0 comments on commit d7bfc96

Please sign in to comment.