Next.js 16 changes how applications build, read request data, and refresh cached content. For an existing app, check those contracts before enabling optional features. This guide covers the 16.0 release and its migration requirements, rather than every change in later 16.x versions.
Make request data asynchronous
Next.js 15 introduced async request APIs with temporary synchronous compatibility. Version 16 removes that compatibility. In a server page, read params with await; check callers of searchParams, cookies(), and headers() too. The upgrade guide lists the affected entry points.
For a minimal app/blog/[slug]/page.tsx, the shape becomes:
type Props = { params: Promise<{ slug: string }> }
export default async function Page({ params }: Props) {
const { slug } = await params
return <p>{slug}</p>
}Reload a dynamic URL directly after migrating. Navigating to it from another page is a separate check; a successful build alone does not show that both paths work.
Choose what cache invalidation means
For content that can briefly remain stale, use revalidateTag('posts', 'max'). The second argument is a cache profile. The one-argument form is deprecated. With 'max', a subsequent visit can receive the old value while the replacement loads. See the API reference.
That distinction matters in a CMS. “The record was saved” and “the next reader receives the new version immediately” are different promises. Test the published page, not just the save response.
Cache Components is a separate opt-in through cacheComponents: true. It combines cached work with dynamic content under Suspense. Before enabling it, decide which content can be shared and which depends on a request. The caching guide explains the boundaries.
Check the build configuration
Turbopack became the default bundler in Next.js 16. The release announcement reports faster builds and refreshes, but those figures are not measurements of your app. Check custom loaders and plugins, then compare builds under the same conditions. next build --webpack remains an option when a project needs its existing webpack setup.
React Compiler support is stable but opt-in. Also distinguish React 19.2 features from the additional Canary features described in that announcement; the section is not a list of stable React APIs alone.
Use debugging context, then reproduce the fix
DevTools MCP lets a connected coding agent inspect development errors and application context. It does not establish that a proposed fix is correct.
Keep a reproducible failure before changing code. After the fix, repeat it and check a production build. Upgrade with optional features disabled first where possible, so a failure has fewer possible causes.
Comments (0)