Tuesday, September 10th 2019
Introducing Wildcard Domains
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!
Adding Wildcard Domains
Capturing all subdomains on the fly is as simple as visiting your project's Domains tab:
Then, enter a wildcard domain of your choice and click "Add":
Next, you will be asked to configure 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.
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.
The entire static.fun project is open source. Make sure to check out the code!
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.
We can't wait to find out what you will create with this! Let us know via Twitter.