I deployed a React app on Heroku which had an API key in an .env
file. Now that the app is deployed I don't know how to reinstate that variable.
REACT_APP_API_KEY = blahblahblah
In Heroku I thought would just add the same variable in 'Config Vars' but it's not working. In my app the .env
file is located in the same directory as the src/
directory. The file that uses that API key is located in the src/
directory.