Is there a system variable for the base URL?

Is there a system variable for the base URL?

If I promote an app from development to production, the base url changes, from https://app.zohocreator.com/ to https://{org name}.zohocreator.com/. Is there a variable available that will return the base URL for the application in the environment it is currently executing in?

Because the current situation makes it impossible to test anything that requires a url to another part of Zoho if you are using environments, e.g. embedding a report record view in a snippet, etc.

If you aren't already using environments, you're in for some nasty surprises if you do start to use them.