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

Have the same question?

Ask it with the command you ran and the output you got, and it will be answered here.

Ask a question

Related