Is there a way to inject environment variables, e.g. REACT_APP_MY_API into the index.html file?
REACT_APP_MY_API
index.html
According to this, it can be done, but I can\'
Make sure you restart your create-react-app when adding variables into the .env file
Also make sure you have >= react-scripts@0.9
I use .env variables for the meta title of a site with various language versions of the build:
%REACT_APP_SITE_TITLE%