Category
Explore 3 articles in this topic.
Blogen’s mutations are Server Actions, not a second API. A small db helper, generated Database types, and a mapper back to the shapes the UI already expected.
RLS is the API for Blogen. This note covers public reads, author-only writes, why admin checks belong in profiles, and the UPDATE-needs-SELECT trap that looks like a failed save.
A walk through the choices we made moving Blogen from Express and MongoDB onto Next.js Server Actions and Supabase — auth, storage, and why public pages can finally render real HTML.