Blog
Popular this month

28 November 2026
Thirteen Unit Tests Passed and Production Disagreed
I filtered link prefetches out of pageview tracking, wrote tests, and they all passed. Production still recorded four out of five test requests. The tests called the middleware directly and skipped the layer that rewrites the headers it reads.

16 November 2026
A Network Test That Was Lying to Me
The app could not reach its database, and a quick connectivity test inside the container said the network was broken. The test itself was wrong: it used a feature that only exists in bash, in a container that runs a different shell.

28 September 2026
The Hour That Went Missing Between Two Postgres Clients
A batch of scheduled posts looked like it published an hour early — until it became clear the database was right, and only one of the two tools reading it was wrong.

31 August 2026
The Default Value That Passed tsc and Failed the Build
A page component with `= {}` on its props typechecked cleanly and broke `next build` anyway — a class of error the type checker alone will never catch.

28 July 2026
The Dollar Sign That Broke My Bcrypt Hash
A bcrypt hash stored in .env stopped matching after a routine restart. The cause was not the hash — it was Next.js expanding $ as a shell-style variable reference.