Open xmlking opened 4 months ago
Expected
MY_SECRET=prod
(which is defined in.secrets.prod
) but gotMY_SECRET=dev
(which is defined in.secrets
)
I guess here MY_SECRET is rather defined in one of the .env.*
files which are loaded before as the output shows.
What is the debug output (the loading priorities) you expect:
NODE_ENV=prod dotenv-run -f .env -f .secrets -v '.*' -u
---------------------------------
- Root directory: /Users/xxx/Work/SPA/signals
- Working directory: /Users/xxx/Work/SPA/signals
- Files: .env, .secrets
- Environment: prod
- Environment files:
???
- Environment variables: .* (Unsecure Mode)
I am trying following scenario: Loading Priorities works :
.env
, .env.local
,.env.prod
<--- this works for .env Loading Priorities not working with two files:.env
, .env.local
,.env.prod
,.secrets
,.secrets.prod
<-- this not working with both.env
and.secrets
filesExpected
MY_SECRET=prod
(which is defined in.secrets.prod
) but gotMY_SECRET=dev
(which is defined in.secrets
)