diff --git a/main.go b/main.go index aa278d7..a70b1c5 100644 --- a/main.go +++ b/main.go @@ -27,8 +27,10 @@ var logger *slog.Logger //nolint:gochecknoglobals func main() { ctx := context.Background() - if err := godotenv.Load(); err != nil { - log.Fatal("Error loading .env file") + if os.Getenv("SKIP_DOTENV") != "1" { + if err := godotenv.Load(); err != nil { + log.Fatal("Error loading .env file") + } } logger = slog.New(slog.NewTextHandler(os.Stdout, nil))