domain hook-up

How can I implement functionality that allows someone to connect a domain in the app? A user can connect a domain in the app, and then their "page" will be displayed under that domain. Is this possible?
17 Replies
jack567
jack567OP4d ago
??? Is it possible?
inder
inder4d ago
You are asking about app architecture, nothing to do with db you decide to use. You can take a look at this full stack nextjs app https://github.com/vercel/platforms
jack567
jack567OP4d ago
i am asking about domain "Custom subdomain routing with Next.js middleware", i want to have custom domain abc.pl abc.org abc2.com
inder
inder4d ago
What do you mean by their page will be displayed? From what I can understand, you want to have an app where users connect their domain with your app and then whenever someone visit that domain, you want it to route to your app?
jack567
jack567OP4d ago
yes, i want create app where user can create own website very fast he configure some settings and he will get own website but i want to give user possibility to attach own domain it is very important SEO eetc i am thinking if it is possible in supabase
inder
inder4d ago
Yes but as I said that's not supabase specific. You need to research about domain mapping. An article I found https://dev.to/authress/adding-custom-domains-to-your-saas-4hci
jack567
jack567OP4d ago
hmmm domain mapping could you explain how can I implement it? how does it works? it doesn't work like connecting a domain, hmmm.. when i connect domain I pass server address and domain propagate in 24h
jack567
jack567OP4d ago
hmmm i still dont know xd
jack567
jack567OP4d ago
"If they want to have your app on their root domain, e.g. customer.com then they'll have to create an A record on customer.com pointing to your app’s IP address." so what ip address? hmmm ok, it isnt easy i think ; p i have question yet, do you create saas apps and earn money? what is your experience ?
inder
inder4d ago
It needs some techincal knowledge but there are paid services which make it easy. If you're looking for developer then you can post in #jobs channel
jack567
jack567OP4d ago
Hmm i understand that host header is important Reverse proxy is need for ssl
inder
inder4d ago
This will also be helpful to you https://www.youtube.com/watch?v=vVYlCnNjEWA Its an explainer of the app I linked above
jack567
jack567OP4d ago
ok thanks so it is possible in supabase + next
inder
inder3d ago
supabase is your hosted sql db. You store the domains user decides to map to their app in your db. nextjs is just a framework. The db and framework you use here is irrelevant. This is about app architecture. The vercels/platforms app is a great template. I'd recommend you go through the code and see how they're handling everything. You can easily replicate this with supabase and any frontend framework you decide to use.
jack567
jack567OP2d ago
ok

Did you find this page helpful?