These deployment URLs share a global common namespace with all other customers: *.now.sh. To present these deployments to your end users, you then alias those URLs to your definitive domains.
Today we are introducing a new add-on: Custom Deployment Suffix. This add-on allows you to replace .now.sh everywhere with a custom domain of your choosing, giving your team further isolation, privacy, and security for all new deployments.
As an added bonus, if you enable this feature you will receive a forever free .sh domain*. We have even configured our own company's suffix to be `zeit.sh`. Let's take a look at what it took to set that up.
Whenever you select a domain as your custom domain suffix, our API validates that the initial requirements are met.
Only domains that are verified (i.e. the domains you own) and those that point to our nameservers are accepted.
Once the change is saved to our database, our backend begins a loop that ensures that all the dependencies of the suffix are met:
The DNS is correctly configured and propagated
A wildcard certificate is issued
The configuration is propagated across our datacenters
During this process, all deployments will continue to be created with now.sh as a suffix in order to ensure the correct health of the service at all times.
Furthermore, if any of the dependencies are undone later on (for example, if you were to delete the domain or certificates manually), the deployment suffix will be deactivated until the correct conditions are applied again.
Using your own domain for deployments is a very important step for your team. We just showed how you and your team can gain your own space within the cloud, securely, and automatically.
All with a setup process that involves just a few clicks.
In the future, you can expect more powerful settings and features to be enabled on top of your custom domain suffix, such as only allowing specific IPs or subnets to access the direct deployment URLs (this feature is currently only available to custom enterprise plans).
We hope you find this feature useful and would love to hear your feedback.
* The chosen .sh domain is free as long as the add-on is enabled. If the add-on is disabled, the domain will be charged for full-price at the renewal date unless removed. If the add-on is enabled for the purpose of obtaining the free domain, please note that disabling the add-on will incur in the charge of use by the first month of the add-on.