Compiling MDX at build time, version one

The first attempt at moving compilation out of the request path — and the three things it got wrong that I only saw once real traffic hit it in production. A post-mortem on premature cleverness.

back to journal
next.js

Placeholder entry — the full post lands with real content later. This stub exists so the journal index, topic filters, and popular rail render with realistic data during the build-out.

What this post will cover

A post-mortem on the first build-time compilation attempt: what it got wrong, what production traffic revealed, and the diagram I should have drawn before writing any code.

scripts/example.ts
export const placeholder = true;

More soon.

Subscribe to the journal
New posts on software, craft, and the occasional detour — straight to your inbox. No more than a couple times a month.