Fixed missing AUTH_HANDLER_URL env issue

This commit is contained in:
Piotr Biernat 2024-07-17 17:52:35 +02:00
parent 941c5fdf92
commit c644f42ea9

View File

@ -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