I was just checking on how pipelines work in Heroku. I want the staging and production apps to be the same except that they should access different API endpoints.
How could I achieve that?
I was just checking on how pipelines work in Heroku. I want the staging and production apps to be the same except that they should access different API endpoints.
How could I achieve that?
Copyright © 2021 Jogjafile Inc.
Heroku encourages getting configuration from the environment:
In this instance you might use an environment variable called
API_BASE
that gets set to the base URL of your staging API on your staging instance and to the base URL of your production API in production.Exactly how you read those values depends on the technology you're using, but if you look for "environment variables" in your language's documentation you should be able to get started.