Would it be possible to have the main site url, which is setup in the general settings, dynamically change based on the publishing destination?
Currently if I want to publish to a test server I have to manually change the URL prior to changing the publishing location.