Ok, seems to be solved now. I needed to prepend the environment variable in my React app with “https://” before using it in the app.
Everything seems to be working now. To summarized just needed to do the following:
- Add “ARG REACT_APP_BACKEND_URL” to Dockerfile
- Prepend environment variable value with “https://” in the React code.