Is there a way to inject environment variables, e.g. REACT_APP_MY_API
into the index.html
file?
According to this, it can be done, but I can\'
From the docs (here):
react-scripts
dependency version is equal or greater than 0.0.9
.env
file at the same level of your package.json
REACT_APP_
; for example REACT_APP_TITLE
process.env.REACT_APP_XXX
%
ie %REACT_APP_TITLE%
.env
file