How to add custom subdomain for each project user created
Unanswered
Rhinelander posted this in #help-forum
RhinelanderOP
I want to add subdomain for each project user creates. So my current domain is example.com after user creates new project it creates new subdomain project.example.com is the url where he can visit this project.
I already added wildcard *.example.com to my vercel i am just confused how do i not create that subdomain within my next.js app
I already added wildcard *.example.com to my vercel i am just confused how do i not create that subdomain within my next.js app
4 Replies
@Rhinelander I want to add subdomain for each project user creates. So my current domain is example.com after user creates new project it creates new subdomain project.example.com is the url where he can visit this project.
I already added wildcard *.example.com to my vercel i am just confused how do i not create that subdomain within my next.js app
What you need is multi tenant application. https://vercel.com/templates/next.js/platforms-starter-kit
RhinelanderOP
yeah i know. i followed this and got lost.
i have my project created already and this has bunch of stuff that i don't need. middleware combines both auth and subdomain logic
i would preffer simpler explanation from someone who has done this already