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
???
Is it possible?
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
i am asking about domain
"Custom subdomain routing with Next.js middleware", i want to have custom domain
abc.pl
abc.org
abc2.com
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?
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
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
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
hmmm
i still dont know
xd
This is a great video https://www.youtube.com/watch?v=Kwzh_Tbk_QY
"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
?
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
Hmm i understand that host header is important
Reverse proxy is need for ssl
This will also be helpful to you https://www.youtube.com/watch?v=vVYlCnNjEWA
Its an explainer of the app I linked above
ok thanks
so it is possible in supabase
+ next
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.
ok