Debugging
6 articles
The Invisible 307 Middleware Send Behind a Login-Dashboard-Login Loop
After a successful login, the page loops back. No console error. No logged exception. The middleware said everything — but not where you were looking.
Contentlayer vs Turbopack: Why You Need pnpm dev --webpack
A freshly scaffolded Next.js starter that refuses to start — and the build flag that's invisible unless you already know you need it.
http://undefined: When Next.js Env Variables Need NEXT_PUBLIC_
In PHP, $_ENV is available everywhere. In Next.js, the server and browser are separate builds — a variable without the NEXT_PUBLIC_ prefix becomes undefined in the client, and nothing tells you.
The Dev Server That Didn't Trust Me
A diagram that wouldn't render, a server log that held the answer from the start, and the PHP reflex that cost two hours before anyone read it.
When a redirect() Inside a try/catch Silently Disappears
In PHP, a redirect is a return value. In Next.js, it's an exception. Mix the two in a try/catch and the redirect silently disappears.
The Doctrine Filter That Only Breaks on Sub-Requests
A tenant-scoping filter that works perfectly under load, in every test, on every page — until one template embeds another controller.