Author profile
4
0
13
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.
Weeknight cooking does not have to feel like a deploy. A quieter kitchen, a radio, and a single test: would I still make this if nobody else was coming over?
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.