This commit is contained in:
2026-08-13 21:38:42 +02:00
parent db1f341784
commit 260fe28ac0
6 changed files with 134 additions and 11 deletions
+7
View File
@@ -7,6 +7,13 @@ import (
"strings"
)
// LoadDotEnv loads the monorepo-root .env into the process environment.
// Existing variables are never overridden. Safe for CLI tools that only need
// DATABASE_URL without a full config.Load (production often has no .env file).
func LoadDotEnv() {
loadDotEnv()
}
// loadDotEnv loads the monorepo-root .env into the process environment.
// Existing variables (including empty ones set by tests) are never overridden.
// Missing file is a no-op — production typically injects env without a file.