tutorial-react-docker icon indicating copy to clipboard operation
tutorial-react-docker copied to clipboard

Suggesting a different approach

Open axelhzf opened this issue 6 years ago • 0 comments

I was reading the whole conversation here https://github.com/facebook/create-react-app/issues/982 and I wanted to propose a different solution but the issue was closed. So I thought that this would be a good place to follow the conversation (sorry if that is not the case).

I tried a different approach here https://github.com/axelhzf/create-react-app-docker-environment-variables the main idea is to build the application at build time and only replace the environment variables at runtime. The environment variables are replaced on the index.html defining a global variable.

axelhzf avatar Jan 12 '19 19:01 axelhzf