We are using external APIs as data source values for some template fields within Sitecore. We would like to change that data source depending on the environment. For example, on staging the data source would be stage.foo.com/getstuff, and prod would be foo.com/getstuff.
We are using TDS, and all the templates are synced for continuous integration.
My initial instinct is to put the values in app settings and use a post deploy PowerShellscript or something. I'll also look into pipelines which might allow us to use tokens instead of PowerShell.
I'm curious if there is a community recommended approach?