DEV Community

loading...

Discussion on: Managing .env variables for provisional builds with Create React App

Collapse
sushantraje2000 profile image
sushantraje2000 • Edited

I am using visual studio 2017 with React template
in which I followed above steps but its not working for staging

can you add working source code also

Collapse
donghyukjacobjang profile image
Donghyuk (Jacob) Jang Author • Edited

There was env-cmd version update and it required a parameter to point a custom env file, As @foxbit19 discovered.
CRA template with env-cmd example is available at github.com/DonghyukJacobJang/cra-e... .
Thank you so much @sushantraje2000