When building a multi-tenant application like slack, most times, there is always a requirement for all tenants to have their subdomain, e.g olumide.slack.com.
This article explains how to do that with zero cost on Netlify. Based on a Netlify support response, this feature is accessible on the Netlify pro plan, which cost about $19/month/user as of the time of writing this article.
I will show you an alternative approach to doing that without using a Pro account. Thereby; saving you about $230 per annum.
Get a domain, and use "let's encrypt" for a wildcard SSL certificate.
Point your DNS to your Netlify app. it might take a while to propagate. You should see a tag with “Netlify DNS” on that domain when done.
Create a new CNAME wildcard DNS record from the Netlify “DNS Panel” if none is created automatically after step 2.
From your netlify dashboard, go to domain management, and then select “Add domain alias” to manually add a new domain alias.
You should be able to access your new subdomain immediately it’s saved on Netlify.
Watch out for Part2 if you are interested in learning how to create subdomains on the fly, without doing it manually.
Top comments (5)
Hi, I need part two please...
Here is the link to the part 2 dev.to/akinmyde/implementing-wildc...
Good. I think you are the first person intreseted in the Part 2.
I should get it published in a week on 2.
Part 2 vote from me too! Is it possible to do with just *.domain.com?
Yeah! the part 2 explained that dev.to/akinmyde/implementing-wildc...