I have a txt file in my solution that serves as a template for emails sent by my app. In the file there are links that contain the host URL of my app. When I am deployed to a staging slot in my Azure App Service, the url of the deployment is myapp-staging.azurewebsites.net and to test emails in staging we those links must contain that URL.
In production, the host URL will be myapp.customdomain.com. The url in the text file now needs reflect this url used in the production slot.
Is there a way to use deployment slots and the benefits of swapping if I need to have URLs in the code being deployed to each slot? I looked at the Deployment Slot App Settings but I don't see how I could use those to re-write URLs in those text files.