morficus / cypress-dotenv

Cypress plugin that enables compatability with dotenv
53 stars 13 forks source link

Use dotenv-flow instead of dotenv #15

Open paulintrognon opened 3 years ago

paulintrognon commented 3 years ago

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.

morficus commented 3 years ago

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.