Skip to content

← All questions

Value in .env.staging is ignored, an old exported variable keeps winning

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

Rotated a credential. projects/demo-shop/.env.staging has the new one:

text
DEMO_SHOP_PASSWORD=<new>

Runs still authenticate with the old value. --explain --show-secrets confirms the old one is in there. Deleting the line from the file changes nothing, which is how I worked out the file is not the source at all.

Is the dotenv layer cached somewhere?

2 answers

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related