diff --git a/server/main.go b/server/main.go index c61bf59f..492e9cca 100644 --- a/server/main.go +++ b/server/main.go @@ -14,8 +14,8 @@ import ( ) func main() { - // Load .env - err := godotenv.Load() + // Overload .env if .evn file exists,forcefully set all vars + err := godotenv.Overload() if err != nil { slog.Warn("load .env file failed", "err", err) }