How To Build a Multi-Tenant Platform | Nextjs & Vercel
Вставка
- Опубліковано 11 вер 2024
- In this video, I share with you how to build a multi tenant platform using nextjs and vercel
Join this channel to get access to perks:
/ @rasmic
www.tsafi.xyz
Blog CMS video: • Build a Blog CMS using...
Follow me on Twitter: / rasmickyy
Join my Discord: / discord
My portfolio: rasmic.xyz
My Nextjs SAAS Starter Kit: starter.rasmic...
My CMS: www.tsafi.xyz
Browser I use (Arc): arc.net/gift/6...
Screen Studio (Recording Software): screen.studio/...
Please make sure u review the github repo... I had to push a quick fix to the middleware. This change allows all the blogs to render on your subdomain
const url = req.nextUrl;
const pathname = url.pathname;
if (tenantSubdomain) {
return NextResponse.rewrite(
new URL(`/${tenantSubdomain}${pathname}`, req.url)
);
}
Do you have link to github? THanks
are you able to add next-intl to it ? would be awesome to see it in action
Thank you man! i was struggling to understand Multi Platform middleware from Vercel but yours is so much straightforward!
glad u found this video, it was a struggle for me too
Thanks for the video bro this is awesome! Also love your design of the dashboard, you seem to have some mad skills
Dude, thank you bro 🙏 I been at this for a while but you explained it nicely 👌 💯. Keep up the good work 👏
appreciate the kind words g
Just yesterday i was going through vercel's multi tenant platform template code and now you upload this. Great job bro
Hope you enjoyed it!
good stuff! please keep us updated on how custom domains work for you
Will do
Wow! Your site is so smooth.
and this is the video i am looking for.
Glad it was helpful!
Absolute legend
appreciate u gang
thanks Ras Mic this was great
glad you enjoyed it my g
Very cool demo, I can see me using it in the future. Can’t wait for the custom domains tho.
working on that as we speak
The idea is awesome! Correct me if I'm wrong, but with this approach, if the main site goes down, all the subdomains go down with it. This means there is no way to handle each subdomain in a separate (Docker) container to improve stability.
I'm not 100% sure tbh but a good thing to research and check!! Thanks for bringing this up
This appears to be simpler than implementing multitenancy in Laravel, thanks
yeah cuz lava sucks lol
@@rasmic [technology here] sucks cus i use [another tech]. Signs of soydev
I love it, keep the good work man!
thanks g
thank you Ras!, this was really helpfull :)
glad it was helpful
Hands down the best video on building Multi-Tenant Platforms I've seen.
Would love to see how you can link custom domains.
-
do you know if this can work with Clouflare?
will be doing custom domains soon, I haven't tried cloudflare so not sure my g
Great stuff bro 💯
Thanks 💯
Dope video man!
Glad you liked it!
U da goat bro
appreciate u gango
Thanks for sharing, this is really awesome.
Gotchu g
Thank you
You're welcome
Thats really cool!
thanks g
Ras Mic, can you build a tutorial of this awsome project? This is my humble request. I think there is lot to learn from you.
if enough people ask then I'll cook it :)
You're super smart dude nice!
thanks gang :)
Perhaps move the creation of blog posts to each site? That way you prevent the user to choose the site they want to publish to. Less clicks = happier users :D
> That way you prevent the user to choose the site they want to publish to.
ref: the site select
100% agree, if you watched my previous video i created this to be a CMS.. hence the structure then I decided to add this feature… but u right.. update coming soon
very interesting video, thanks bro
Glad you liked it!
Please make a video to add custom domain in this multi tenant app.
will do
Great job man , can you also provide the video for custom domain handling ?
Will upload soon
@@rasmic Yeah, I really really hope you can upload soon a video on domain handling, thanks!!
@@armaandhanji7151 it's coming soon gang
Great video Ras. Just curious, what screen capturing tool do you use?
In the description
Thanks...
no worries g
I just have a little problem doing that bro, when i am working with packages that uses middleware, like next-auth and next-intl, i can't do the rewrite thing because that will make problems with the other packages, can you please help with that, Thankss a lot ❤❤
I don’t use next auth gang, sorry :(
Which tool you use for screen recording with this soft rectangular camera view?
link in the description
So, to use this concept, the authentication is shared between all tenets?
nah auth just to sign up for the platform
brother, how you made that bar on arc please ??
not sure what you are asking
Nice.Just 1 question, does it support multiple domains? like other root domains or just subdomains?
haven't implemented that yet but that will be next
@@rasmic Great.
Nice share bro, Same question here. Can we set a different domain? Not just a custom subdomain?
will this work on a VPS or must it be hosted on vercel to work?
not sure but don't plan on figuring out tbh
yo Ras what vscode theme is that?
i already changed so i couldn't tell u lol
bro what vscode theme is that?
i already changed so i couldn't tell u lol
whats the cursor
editing software I use
how did you make clerk work?
don't have auth for the multi tenant sites
Link to github?
github.com/michaelshimeles/tsafi
@@rasmic Cheers. Any chance you've looked at authentication for multi-tenant sites yet?
@@notbarbara2647 not yet but something cool to look at
@@rasmic Let me know if you do. Next-auth does not support this unfortunately. Clerk does have some features for this, but I don't know yet if it also works on custom domains. Very very tricky. Also literally zero articles on Google or videos on UA-cam for this. The ones that do exist around this topic just copy the Vercel article (but I don't host on Vercel).
interesting
:)
Yo, I didn't realize u were Ethiopian.
selam new
@@rasmic Dena, see u on the next video