I have a ReactJs application that was created using Create-React-App and I am looking for an option to work with multiple .env
files with custom environment variables for various environments, like env.local
, env.qa
, env.development
, env.stage
, and env.production
. I understand how to use env-cmd (which seems like the widely suggested solution for my case). However, it has not been updated in a long while and I am not too certain if that is an ideal choice for my case now. Can anyone please suggest an alternative or advise on this regard? Thank you.
Asked
Active
Viewed 83 times
0

Parth Sekar
- 164
- 8
-
Here is a solution: https://stackoverflow.com/a/55426597/6463558 – Lin Du Jan 04 '23 at 02:01