Next.js after(): The Side Effect That Ran at Build, Not on the Request
after() is not a request API. On a static page the callback runs at build or revalidate. Read cookies before the callback, and do not treat it as a job queue.
Tag
Articles tagged Nextjs on The Augmented Dev.
7 articles
after() is not a request API. On a static page the callback runs at build or revalidate. Read cookies before the callback, and do not treat it as a job queue.
middleware.ts is deprecated. The export must be named proxy, the runtime is Node and cannot be set, and a matcher that skips a page also skips its Server Actions.
How Cache Components in Next.js 16 replace route segment configs with the use cache directive and cacheLife, what becomes a build error, and the cookies-outside-the-cache rule that trips every migration.
The hardest part of React Server Components isn't the syntax — it's knowing which kind of component you're writing and why. Here is the mental model that makes the boundary obvious.
PPR was the experimental flag in Next.js 15; in 16 it's been folded into Cache Components. Learn how static shells and dynamic holes work, how to migrate incrementally, and how to measure the LCP gains.
A practical guide to the features that changed how we build React apps — Server Components, the new compiler, and the patterns that stuck.
A step-by-step guide to building a live-updating dashboard using Next.js API routes, Server-Sent Events, and Supabase Realtime — with reconnection handling and smooth UI transitions.