From e053eca01d7b86ecc2c6f332433296dd6bc959da Mon Sep 17 00:00:00 2001 From: cant-code Date: Mon, 25 Mar 2024 17:59:39 +0530 Subject: [PATCH] Update Viper to read from env var --- internal/configurations/config-setup.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/configurations/config-setup.go b/internal/configurations/config-setup.go index cf61128..7422fc9 100644 --- a/internal/configurations/config-setup.go +++ b/internal/configurations/config-setup.go @@ -44,6 +44,7 @@ func LoadConfig() (Config, error) { conf.SetConfigName("config") conf.SetConfigType("yml") conf.AddConfigPath(".") + conf.AutomaticEnv() if err := conf.ReadInConfig(); err != nil { return Config{}, err