Merge branch 'config-env-var-split' into 'next'
feat(config): split on __, allowing for setting individual values in a table See merge request famedly/conduit!706
This commit is contained in:
commit
e4d6202840
2 changed files with 3 additions and 1 deletions
|
@ -57,7 +57,7 @@ async fn main() {
|
|||
))
|
||||
.nested(),
|
||||
)
|
||||
.merge(Env::prefixed("CONDUIT_").global());
|
||||
.merge(Env::prefixed("CONDUIT_").global().split("__"));
|
||||
|
||||
let config = match raw_config.extract::<Config>() {
|
||||
Ok(s) => s,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue