Multi-Environment Deployments with React

added by DotNetKicks
4/10/2018 1:18:06 PM

1 Kicks, 226 Views

If you are using Create-React-App to scaffold your react application there is built in support for changing environment variables based on the NODE_ENV values, this is done by using .env files. In short this process works by having a .env, .env.production, .env.development set of files.