Type something to search...

Blog

next.js Building interactive apps

next.js Building interactive apps

Every time a user clicks something in a Next.js app that triggers a Server Function, there's a gap. The network round-trip takes an unknown amount of

Dive Deeper
Next.js Building your application

Next.js Building your application

Most developers treat next build as a black box. You run it, you wait, and either it prints a green checkmark or it doesn't. If it fails, you scrol

Dive Deeper
Next.js cacheLife Function

Next.js cacheLife Function

A use cache directive tells Next.js that something should be cached. cacheLife tells it for how long, and — less obviously — _how that durati

Dive Deeper
Next.js cacheTag

Next.js cacheTag

Caching data is only half the problem — the other half is invalidating exactly the right subset of it when something changes, without wiping out ever

Dive Deeper
Caching and Revalidating (Previous Model)

Caching and Revalidating (Previous Model)

Next.js 16 introduced Cache Components, a new caching model built around the use cache directive that makes caching an explicit, opt-in decision ra

Dive Deeper
Next.js catchError

Next.js catchError

error.js catches errors for an entire route segment — but not every error boundary you need actually lines up with a route segment boundary. Someti

Dive Deeper