From c644f42ea9cb3d841c537549a7655c7c446de30d Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Wed, 17 Jul 2024 17:52:35 +0200 Subject: [PATCH] Fixed missing AUTH_HANDLER_URL env issue --- config/config.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index 223640d..67c6b43 100644 --- a/config/config.go +++ b/config/config.go @@ -3,7 +3,6 @@ package config import ( "os" - "github.com/gofiber/fiber/v2/log" "github.com/joho/godotenv" ) @@ -16,7 +15,7 @@ func init() { func GetEnv(name string, defVal string) string { env := os.Getenv(name) if env == "" { - log.Panicf("Missing %s env variable", name) + return defVal } return env