Skip to content

← All questions

Exactly which .env files get read, in which order, and how do I confirm it?

Asked 2,040 views3 answers

I have inherited a repo with .env, .env.local, .env.staging and .env.staging.local at the root and two more inside the project folder. Nobody remembers why.

Before I delete any of them: what is the full list of names that are read, and is there a way to see which ones a given run actually picked up?

asked by Ingrid Solberg241 ·

3 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