Skip to content

← All questions

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

Asked 8,460 views2 answers

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?

asked by Gio Castellano521 ·

2 answers

Know the answer?

Reviewed before it appears. Wrap commands and output in triple backticks and they will render as a code block.

Have a different question? Ask it.

Related