From 28295e2b8371bfbac54332ff503d8b4e40622587 Mon Sep 17 00:00:00 2001 From: mngshm Date: Tue, 1 Apr 2025 12:04:42 +0530 Subject: [PATCH] Replace '-' with '_' --- server/pkg/utils/config/config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/pkg/utils/config/config.go b/server/pkg/utils/config/config.go index b78d89b908..6f40c2a155 100644 --- a/server/pkg/utils/config/config.go +++ b/server/pkg/utils/config/config.go @@ -40,6 +40,7 @@ func ConfigureViper(environment string) error { viper.SetEnvPrefix("ENTE") // Ask Viper to look for underscores (instead of dots) for nested configs. viper.SetEnvKeyReplacer(strings.NewReplacer(`.`, `_`)) + viper.SetEnvKeyReplacer(strings.NewReplacer(`-`, `_`)) viper.SetConfigFile("configurations/" + environment + ".yaml") err := viper.ReadInConfig()