.env with create-react-app
If you have created React app using CRA and store environment variables using .env then you have to add REACT_APP_
in front of the variable.
eg. REACT_APP_S3_SECRET='secretkey'
Otherwise, it will not be accessible in the app.
https://medium.com/@danieljameskay/create-react-app-dotenv-281693a19ecd