Skip to main content

Next.js

Browse all articles, tutorials, and guides about Next.js

5posts

Posts

DevOps
|12 min read

Streaming LLM Responses in Next.js: 1.3s to First Token, Not 15.7s

The same model, the same prompt, and the same DigitalOcean endpoint. One version shows the first words in 1.3 seconds, the other shows a blank screen for nearly 16. The difference is entirely in your route handler.

DevOps
|11 min read

Realtime Chat With Auth: Next.js, Neon Auth, and WebSockets

A WebSocket cannot carry an Authorization header, so how do you know who is on the other end? This build-log wires a realtime chat where every socket is authenticated with a Neon Auth JWT, verified before the connection is accepted, and fanned out across isolates with Postgres LISTEN/NOTIFY. Real code, the security gotcha that matters, and the test output that proves it.

DevOps
|19 min read

A Postgres Branch Per Learner: Building on Neon

Every hands-on lab gets its own Postgres branch, AI generation runs outside the request cycle, and cleanup is core infrastructure rather than a chore.

Security
|11 min read

Next.js 16.2.6 and 15.5.18 Ship 13 Security Fixes: Patch Now

Vercel released back-to-back security updates for Next.js covering 7 high, 4 moderate, and 2 low severity advisories, including an upstream React denial-of-service issue. Here is what is broken, who is exposed, and the rollout path.

DevOps
|11 min read

CVE-2025-55182 React2Shell: 766 Next.js Hosts Breached in 24 Hours

A CVSS 10.0 RCE in React Server Components let attackers breach 766 Next.js hosts in a single day, stealing database credentials, SSH keys, and cloud secrets. Here is how it works, who is affected, and what to do right now.