With Vercel, you can already deploy to HTTPS-enabled subdomains of your choice.
What if you could let customers choose those subdomains (like with Slack workspaces)? Today, we're making this possible with the introduction of Wildcard Domains!
Capturing all subdomains on the fly is as simple as visiting your project's Domains tab:
In this case, we selected a project called "static-fun".
Then, enter a wildcard domain of your choice and click "Add":
Next, you will be asked to configure it.
If you purchased your domain via Vercel, you won't need to verify it.
After you have correctly configured the nameservers of your domain, it will automatically be assigned to your latest production deployment – which will then be indicated in the UI.
The two blue messages indicate that the domain was successfully applied.
Once your domain has valid configuration, you can start using it.
In order to demonstrate how powerful Wildcard Domains really are, we've created a demo project that lets you acquire a subdomain of your choice, on which you can build a tiny website.
As you can see, Wildcard Domains allowed us to offer every visitor with a fresh HTML editor in which they can place their own content. Other people visiting those URLs will see a read-only preview.
With Wildcard Domains, you can capture all subdomains on the fly and have a single deployment take care of them. This allows you to offer highly customizable workspaces or profiles to each of your users with no special effort.