fnitu / edu-hospice

Application developed for SIIT Challenge Accepted – CODVIDHACK 2020
https://edu-hospice.herokuapp.com
2 stars 2 forks source link

Add production API URL to build process #47

Closed fnitu closed 3 years ago

fnitu commented 3 years ago

Check how to build the application to use a different URL for the API requests (a production one instead of the current Heroku development).

References: https://www.jvandemo.com/how-to-use-environment-variables-to-configure-your-angular-application-without-a-rebuild/

razvantudorache commented 3 years ago

For heroku production:

For production:

BASE_URL has been moved from globals to environment and must be used from there.