While working with any project, you will eventually face the need to upgrade or modify it. Of course, before applying any changes in production, you should thoroughly test them. With the platform, this can be done in a separate environment, and once the new version is ready, you can just swap domains between these development/testing and production projects for an immediate version switch.
So, by utilizing this functionality, you can skip the steps of rolling out updates to the environment in production (avoiding additional configurations and possible downtime) and simultaneously keep the previous version of your application for a quick rollback in case of necessity.
Note: The Swap Domains feature operates with the bound domains only. If you need to swap URLs for environments with public IP as an entry point (attached to the application server or load balancer), use the swap external IPs method or adjust appropriate records in your domain registrar.
So, let’s see how this works.
Note: This environment should have a bound custom domain (e.g. production.com) that you will consequently swap with a different environment.
Now, you can add new features, customize settings, apply updates, etc. All without affecting the original environment.
Note: The Swap Domain functionality will work even if only one environment has a bound domain. However, for more thorough testing, you can bind a custom domain to your cloned environment as well.
![]()
After testing the updates, the next step is to swap domains of the production and testing environments.
Tip: If only one of the environments has a bound custom domain, the Swap Domains functionality will transfer it to the second environment.
Open the Settings for one of your environments (e.g. production one). Here, the required Custom Domains section will be opened by default.
In the Swap Domains subsection, choose the environment with which you want to swap domains (the testing one in our case) and click the Swap button.
Tip: You can check custom domains bound to the current environment in the Domain Binding subsection and for the target environment - in the Swap Domains one.
If you experience any problems with a domain swap, you can appeal to our technical experts' assistance at Stackoverflow.