Re:GraphQL is now available on Supabase
by kiwicopple on Tuesday March 29, 2022 @03:42PM
(#30847410)
Yes we developed it ourselves. It's all open source [0] so feel free to fork and modify for yourself.
Inside that repo you'll see two key folders:
- web: our Docs (built with Docusaurus)
- www: our website + blog (built with Next.js)
The naming convention could be better.Both of these are deployed to Vercel as separate "sites" using their mult-zone setup [1]. This setup is so that the docs are deployed on a sub-path (supabase.com/docs), rather than a subdomain (docs.supabase.com)
[0] https://github.com/supabase/supabase
[1] Vercel multi-zones: https://nextjs.org/docs/advanced-features/multi-zones
Re:GraphQL is now available on Supabase
by davidkuennen on Tuesday March 29, 2022 @03:45PM
(#30847447)
Wow, thanks. Much appreciated.
There's several ways to have a blog path contain a separate setup from the marketing/product routes.
One is to run a reverse proxy on the root domain to pull in separate routes for various services.
https://github.com/http-party/node-http-proxy
You can do rewrites at the server level for the root domain
Or if the app on the root domain can do the routing for you (have done this before with a Rails app)
Off-Topic: How did you create your blog? It's seems like you developed it yourself? I'm currently contemplating on how to create the blog for my product, since I want to have it integrated into the main website as well (as subdirectory). It's not really possible when using third party providers. You always have to use subdomains there.