articles
Field notes
Short, specific pieces about things that went wrong in this codebase and what fixed them. Each one is a bug with a commit behind it, not a topic with an opinion behind it.
Page builder15 Sept 2026
The block that editors could insert and nobody could see
A Sanity page builder has two registries — one for the Studio, one for React — and nothing makes them agree. Here is what that cost, and the forty-line script that stops it happening again.
Responsive15 Sept 2026
The fluid type scale that got smaller as the screen got bigger
Visual generators for fluid typography stack media queries whose curves do not meet. The result is a root font-size that drops 12% at 480px and again at 1025px. Here is the maths, the fix, and the check that walks every viewport.
Security15 Sept 2026
The prefix that ships your Sanity token to every visitor
NEXT_PUBLIC_ is not a naming convention. It is an instruction to compile the value into the browser bundle. Here is how a read token ended up in three client chunks, and the postbuild scan that would have caught it.