Catatan Next.js × Supabase
notes· 3 min read
#nextjs#supabase

Server vs Client
Read di Server Components via server client; browser client only for user interactions.
RLS
Set policies di tabel publik: read terbuka, write hanya lewat auth.role() = 'authenticated'.
Storage
Satu bucket images, public read; path konsisten kebab-case.
Cliff notes
createServerClientper request di RSC- service role hanya di trusted routes
Need something built?
I help teams ship performant, accessible web products — from landing pages to full-stack apps. If you have an idea, let's scope it together.