We are deploying a React.js app on Cloud Run. What is the best way to inject config into the app? We don't want to hard code the config in the application code itself or the Dockerfile. Our requirement is that we shouldn't have to build a new Docker image when our config changes. The config can contain things like details of FCM (firebase cloud messaging).
For comparison, when we deploy a Java application using Cloud Run, we can inject the config using environment variables. If the config changes, we have to redeploy the application but we can still use the same Docker image. But this does not work with React. what is the best practice here?