Currently I am developing a react application. I have created a .env file and am using the environment variables in all other pages but am not able to see the .env file in the build folder. Is there any way to change the environment variables at run time in the build file?
This will work when changing the hostname and port, etc. manually and then cresting the build. Is there any way to change the variables after creation of the build?
Any help will appropriated.
Thanks, Riya
${process.env.REACT_APP_HostName}const port =${process.env.REACT_APP_Port} const backendName =${process.env.REACT_APP_BackendName}`.env.developmentand.env.productionif you are usingcreate-react-app