Skip to content

Commit

Permalink
Allow empty env vars in config
Browse files Browse the repository at this point in the history
Stopgap allows us to override e.g. prototype environment in config file
with nothing - but would be better to support different config files
instead.
  • Loading branch information
hdpe committed Dec 29, 2020
1 parent c84e772 commit 6611044
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func newConfig() (Config, error) {

viper.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
viper.AutomaticEnv()
viper.AllowEmptyEnv(true)

return Config{
ServerConfig{
Expand Down

0 comments on commit 6611044

Please sign in to comment.