Skip to content

← All questions

Repo-root .env and a project .env both set the same name — which one is used?

Asked 4,830 views1 answer

Monorepo with three projects. There is a .env at the repo root with shared values, and each project has its own .env.staging. If both define API_TOKEN, which is used, and is that documented anywhere or just an accident of ordering?

asked by Nikhil Sane487 ·

1 answer

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