-
Couldn't load subscription status.
- Fork 1.8k
Description
Currently, once the project is built (into docker image per se), there is no way to change the API URL. It is not intuitive to rebuild the entire image or project just to change the API URL.
Also, building the frontend image takes more resources than building server image. It can take up to 4-6 GB RAM!
Make it so that API_URL can be changed at runtime. This is important so that the same image can be used by multiple API instances. We need other environment variables to be configurable as well, but API_URL will do for now.
This is a priority for stage builds so that we can test server and frontend before deploying to production.
Doing so may break the way things usually are done in ember, but it is the sanest way to do things. The entire point of environment variables and sharable docker image breaks if it cannot be used by other instances than api.eventyay.com