High PotentialStable

Next.js 16.4: What to Check on Static Routes

Use the upgrade to check which routes stay static and which need request-time data.

What Changed

Cache Components lets one page serve prebuilt HTML alongside sections rendered for the current request. In 16.4, an app can enforce where that rendering happens. Put a static guarantee on a public pricing or docs route, or use a looser guarantee for a dashboard that needs account data after its shell appears.

The upgrade also brings changes unrelated to caching. Turbopack applies server-side edits only when a route needs them during development, and shares its runtime across routes in production. Compare a normal upgrade and the caching change separately so you can tell which one caused a regression.

Release Highlights

  • Set ensureStatic to enforce a static shell, prefetch, or full navigation. For a fully static route, the navigation setting fails the build if request-time content slips in.
  • The new navigation API lets you defer cached content until a user clicks, so prefetching a list of links does not have to load every linked page in full.
  • New apps enable Cache Components by default. Existing apps can evaluate the change on their own schedule.
  • React 19.3 ships with this release. If your app uses browser transitions or shared React packages, include those paths in the upgrade check.

What It Unlocks

You can catch a route that silently starts doing request-time work before it ships. That makes the upgrade especially useful for apps that mix public pages with signed-in flows.

Who Should Try It

App Router teams with a mix of static marketing pages and logged-in routes, especially if they are evaluating Cache Components.

When to Hold Off

If your main bottleneck is a slow database query, fix or measure the query first. A static shell does not make personalized data load faster.

What to Check First

  1. On a scratch branch, set ensureStatic to navigation on a public route that should stay fully static. Run the production build and check that the constraint catches a request-time component.
  2. Exercise both a direct visit and a prefetched click. Check that personalized content stays out of the prefetch and is correct after navigation.

ShipFoundry for your project

Find the Next.js Updates Worth Shipping

Add Next.js to your project in ShipFoundry. See which releases are worth acting on, why they fit your stack, and what your coding agent should check first.

Start 7-Day Trial