Skip to content
Getting StartedChapter 3 / 34Intermediate5 min read

What's New in Next.js 16

Next.js 16 new features explained simply: Turbopack by default, proxy.ts, Cache Components, async params, React 19.2, new caching APIs and breaking changes.

On this page

1. What is Next.js 16?

This release is about three things: build and dev speed, explicit caching, and fast navigation. Some old deprecated features were also removed, so you need to understand the breaking changes before you upgrade.

2. Why does it matter?

Up to Next.js 15, caching was largely implicit. Developers could not tell why a page became static or why data looked old. Next.js 16 made this model clear.

Next.js 15Next.js 16
Webpack by default, Turbopack opt-inTurbopack is the default in both dev and build
middleware.tsproxy.ts (Node.js runtime)
Implicit cachingCache Components, opt-in with use cache
experimental.ppr flagPPR is part of cacheComponents
Sync params still workedparams and searchParams are async only
next lint commandESLint or Biome directly
revalidateTag(tag)revalidateTag(tag, profile) and updateTag
Node 18 supportNode 20.9+ required

3. Where is it used?

FeatureWhere it helps
Turbopack2 to 5 times faster builds, Fast Refresh up to 10 times faster
Cache ComponentsA static shell and dynamic parts together in one page
proxy.tsAuth redirects, headers, rewrites
Layout deduplicationA layout shared by 50 links is downloaded only once
Incremental prefetchingPrefetches only the part that is not in the cache
updateTagThe user sees fresh data right after a form save
React 19.2View Transitions, useEffectEvent, Activity

4. How does it work?

The Next.js 16 upgrade path
Install Node 20.9+
npx @next/codemod@canary upgrade latest
Rename middleware.ts to proxy.ts
await params, searchParams and cookies
Add default.js to parallel slots
Replace next lint with eslint
next build (Turbopack)

The codemod does most of the work for you. For anything left over, check the official upgrade guide.

Next.js 16 comes with React 19.2 (the App Router uses React Canary), so features like useEffectEvent, <ViewTransition> and <Activity> are available. React Compiler support is also stable (reactCompiler: true), but it is off by default.

5. Code example

Turning on Cache Components

ts
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
  cacheComponents: true,
};

export default nextConfig;

The docs for newer 16.x minor versions also ask you to set partialPrefetching: true alongside it, so be sure to check the docs for your version.

From middleware.ts to proxy.ts

ts
import { NextResponse, type NextRequest } from "next/server";

export function proxy(request: NextRequest) {
  return NextResponse.redirect(new URL("/home", request.url));
}

export const config = {
  matcher: "/old-home",
};

Async params and the new caching APIs

tsx
import { cacheLife } from "next/cache";

async function getPost(slug: string) {
  "use cache";
  cacheLife("hours");
  const res = await fetch(`https://api.example.com/posts/${slug}`);
  return res.json();
}

export default async function Page({ params }: PageProps<"/blog/[slug]">) {
  const { slug } = await params;
  const post = await getPost(slug);
  return <h1>{post.title}</h1>;
}

How does the code work?

PartMeaning
cacheComponents: trueTurns on "use cache", cacheLife, cacheTag and PPR
proxy.tsThe old middleware, now with the name and function proxy
matcherWhich paths the proxy runs on
"use cache"The result of this function is cached
cacheLife("hours")How long the cache stays fresh
PageProps<"/blog/[slug]">A global type helper, the type of params comes from the route
await paramsIn Next.js 16 params is a Promise

Other breaking changes

ChangeDetail
Need Webpacknext dev --webpack, next build --webpack
Parallel routesEvery slot needs a default.js, or the build fails
revalidateTagNeeds a second argument, like revalidateTag("posts", "max")
New APIsupdateTag and refresh, both only in Server Actions
RemovedAMP, serverRuntimeConfig, publicRuntimeConfig, next lint
next/imageminimumCacheTTL defaults to 4 hours, qualities defaults to [75]
TypeScriptAt least 5.1

Interview tip

A good answer to "What is the biggest change in Next.js 16?" is: caching is now opt-in. Dynamic code runs at request time by default, and you decide what to cache with "use cache".

6. Common mistakes

Mistake: Leaving middleware.ts as it is

Why? It still works for edge use cases but is deprecated and will be removed in a future version.

Better: Rename the file to proxy.ts and name the exported function proxy.

Mistake: Using params without await

Why? Sync access was removed in Next.js 16, and params is a Promise.

Better: Write await params in a Server Component, and use the React use() hook in a Client Component.

Mistake: Forgetting default.js for a parallel route slot

Why? In Next.js 16 the build fails without default.js.

Better: Create a default.tsx in every slot that returns null or calls notFound().

Mistake: Still relying on a custom webpack config after moving to Turbopack

Why? Turbopack does not read the webpack config, so your build can behave differently.

Better: Use the Turbopack equivalent config, or add the --webpack flag if you need to.

7. What to learn before and after

Final quick revision

PointDetail
ReleaseOctober 2025
BundlerTurbopack by default (dev and build)
CachingcacheComponents: true + "use cache"
MiddlewareNow proxy.ts
ParamsAsync, await params
Node20.9+
React19.2 features