Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

feat: load .env files when using react-scripts #310

Merged
merged 3 commits into from
Jun 22, 2020
Merged

Conversation

bahmutov
Copy link
Contributor

@bahmutov bahmutov commented Jun 22, 2020

File on the left should "win"

.env.test.local, .env.test, .env

env-test

@bahmutov bahmutov changed the title load .env files when using react-scripts feat: load .env files when using react-scripts Jun 22, 2020
@bahmutov bahmutov merged commit 277077c into main Jun 22, 2020
@bahmutov bahmutov deleted the check-react-env branch June 22, 2020 20:49
@bahmutov
Copy link
Contributor Author

🎉 This PR is included in version 4.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

dmtrKovalenko pushed a commit to cypress-io/cypress that referenced this pull request Oct 1, 2020
…act-unit-test#310)

When using `react-scripts`, load `.env.test.local`, `.env.test` and `.env` files (and set `NODE_ENV=test`) and make `process.env` available

See `examples/react-scripts` for a full example
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configuring app requirements pre-test
1 participant