Whoever is challenged with deploying his React app for production and other environments such as "test" or "stage" (or maybe even on Oper feature?) will face questions such as:
- Where do I keep the environment specific configuration, such as the URL of my backend?
- When is the right time and place to run "npm" build (these are closely connected since "npm build" will barcode all environment variables)?
I evaluated the options intensively in a Docker and Kubernetes setup in the last week and would be happy to share my insights and discuss other ideas. If time is left we could look into related DevOps topics such as "Deploying one environment per feature-branch in Kubernetes" (also called "Review apps") and "Test reports and coverage with React".