Next.js Discord

Discord Forum

How to add custom subdomain for each project user created

Unanswered
Rhinelander posted this in #help-forum
Open in Discord
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

4 Replies

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