From 66110442f87f786a7bcd118b5ae14b667ee410bf Mon Sep 17 00:00:00 2001 From: Ryan Pickett Date: Tue, 29 Dec 2020 01:55:40 +0000 Subject: [PATCH] Allow empty env vars in config Stopgap allows us to override e.g. prototype environment in config file with nothing - but would be better to support different config files instead. --- config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/config.go b/config.go index a88b15a..9f76313 100644 --- a/config.go +++ b/config.go @@ -26,6 +26,7 @@ func newConfig() (Config, error) { viper.SetEnvKeyReplacer(strings.NewReplacer(".", "_")) viper.AutomaticEnv() + viper.AllowEmptyEnv(true) return Config{ ServerConfig{