cypress-dotenv icon indicating copy to clipboard operation
cypress-dotenv copied to clipboard

Use dotenv-flow instead of dotenv

Open paulintrognon opened this issue 4 years ago • 1 comments

Fixes #14

Tell me what you think about it :-) It will greatly help users of Next.js, which is a very well-known React.js framework.

paulintrognon avatar Sep 30 '20 09:09 paulintrognon

I'm not familiar with dotenv-flow, but skimming its README it would seem like it promotes having multiple .env files and committing them to your repo. is that correct?

If so, that is actually an anti-pattern (a popular one, but still an anti-pattern). The README for .env actually discorages (1) committing your .env file (2) having more than one.

Having a .env for each deployable environment would... basically no longer make them "environmental variables". Because in order to change then you would need to make a code change.

morficus avatar Sep 15 '21 05:09 morficus