r/Supabase • • 3d ago

tips Need advice

I am using cloudflare and supabase and i am thinking to buy the subscription supabase pro and buy domain name , ,,is there anything i need to know in this setup?

0 Upvotes

12 comments sorted by

3

u/Sea_Chipmunk_202 3d ago

You'll hit the custom domain setup in the Supabase dashboard and it's mostly painless, just be ready to fiddle with the CNAME flattening on the Cloudflare side so it doesn't get stuck on a weird SSL loop.

2

u/Hot_Construction8351 2d ago

Small thing: you never actually buy a domain, you rent it, and the renewal price after year one is where they quietly get you. The Supabase side of this is the boring part by comparison.

2

u/Background-Honey-187 2d ago

Skip the Supabase custom domain add-on. It's $10/month per project on top of Pro and all you get is api.yourapp.com instead of the supabase.co URL, which no user ever sees anyway. Buy the domain through Cloudflare Registrar since they sell at cost, point your frontend at it and leave the API alone.

1

u/BVansJG 2d ago

Yes, I do this and agree.

1

u/iammohamedatef 2d ago

Is the domain just for your website or do you want your Supabase API on it too?
You can use your own domain for the site and keep the Supabase URL for the backend. The Supabase custom domain is a separate paid add on.
If you’re using Supabase Auth, update the Site URL and allowed redirect URLs for the new domain then test sign in and password reset.

1

u/AcceptableStart3044 2d ago

Mucho lío por un dominio, ¿no?

1

u/snap-dev 2d ago

main things i'd check before going live: rls turned on for every table (the anon key is public in your frontend so rls is the only lock), the service role key never in your cloudflare client code, and custom smtp for auth emails since the built in one is rate limited and meant for testing. when you get the domain, update site url and redirect urls in auth settings or login links will point at localhost. pro is mostly worth it for no pausing and daily backups. what's the app doing, does it have user logins?

1

u/BVansJG 2d ago

I’m hoping someone responds to this as well!

1

u/Moceannl 1d ago

Get a VPS and install Postgres…