Custom Sub-Domains on Vercel + Namecheap
I'm trying to create a landing-builder and I'd like to host all the created landings on different sub domains (allow users to do that from the entire app). And I faced that I don't know how to configure the subdomains settings through the Vercel. Could someone help me with that or maybe you had some similar experience?
Here are my domains settings (screenshot 1)
Here are my domains settings (screenshot 1)
5 Replies
Seems good, what is not working? I have the exact same setup in few projects with multi tenancy and it works
I'd like to make some routes of my app lead to a subdomain, like this one to show not by route /dashboard/landing/org-name, but on org-name.drop-builder.com/. That's what I mean)
Currently the sub domains work good, I can paste any of them and it will lead me to my app 👌 But it shows the root content from app/page.tsx instead of content from here)
There are 2 options:
1. Rewrites in nextjs configs
2. Middleware.ts file
I recommend middleware file, look for multi tenancy app nextjs, you will need to adjust it to your case
I have something pretty similar with
theo.feedbackvote.com
Jaaneek.feedbackvote.com Etc
Jaaneek.feedbackvote.com Etc
Cool, thanks! Trying)
I did it! After dozens of hours I finally setted up multi-tenancy on my project based on T3 stack and pages routed. Now it handles great for localhost, staging and prod environments. Thank you so much @Jaaneek +++++ 🫶