Saturday 10 June 2017

Best way to pass process.env.ENV to my react app?

My react app needs to know if the ENV is production or development, and I set it in my .env file on my express server perfectly, but I don't know how to inject that successfully into the client code which needs to know the ENV to determine if the link is localhost or mysite.com



via joe

No comments:

Post a Comment