Mental-model
4 articles
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.
params Is a Promise in Next.js 16: The Page Fails Without await
In Symfony, $request->attributes->get('slug') is synchronous. In Next.js 16, params is a Promise. Forget the await and your page silently fails.
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.