diff --git a/envs/dotenv.go b/envs/dotenv.go index da2d9806..16472252 100644 --- a/envs/dotenv.go +++ b/envs/dotenv.go @@ -93,6 +93,13 @@ func lookupDotEnv(dir string) map[string]string { mergeDovEnvFile(vars, filepath.Join(dir, ".env."+vars["APP_ENV"]+".local")) + // When the user has set environment variables, we inherit them instead of overwrite it + for k, _ := range vars { + if os.Getenv(k) != "" { + delete(vars, k) + } + } + return vars } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy