Migration guide

Next.js 15 to 16: a SaaS migration checklist

Next.js 15 has moved to Maintenance LTS. If your SaaS depends on authentication middleware, localized routes, payment callbacks or server actions, plan the upgrade as a compatibility change and verify each boundary.

Checked against official documentation on . No framework migration is claimed or demonstrated here.

What changed in support

As checked on 16 November 2026, Next.js lists 16.x as Active LTS and 15.x as Maintenance LTS. The project says it will continue publishing security releases for Next.js 15 through 31 January 2027. That gives teams a defined security window; it does not make 15 the current active major. See the Next.js support policy.

Next.js 16.3 was announced on 29 June 2026 with Instant Navigations and improvements to the dev server, builds and agent tooling. Treat the feature release as context for planning, not as a reason to enable every new caching feature during a major-version migration. The official 16.3 announcement lists what shipped.

1. Establish a baseline before changing versions

Record the installed versions from the lockfile, the Node runtime used in development and deployment, and the existing commands for type checking, tests and production builds. Keep the migration on a branch. Run the current checks first so a pre-existing failure does not get attributed to the upgrade.

Next.js 16 requires Node.js 20.9 or newer and TypeScript 5.1 or newer. Confirm the runtime in CI and hosting as well as on a developer laptop; a successful local build is not enough if production still runs an older Node version. The official upgrade guide has the current requirements and breaking changes.

2. Upgrade dependencies, then review the codemod diff

The Next.js guide documents an automated upgrade command and a manual package update. The codemod can adjust several known changes, including the middleware convention and Turbopack configuration. It does not replace review: Next.js explicitly calls out additional migrations for synchronous request APIs.

npx @next/codemod@canary upgrade latest
npx @next/codemod@canary next-async-request-api .

Use the second command only after checking whether your app still reads params, searchParams, cookies(), headers() or draftMode() synchronously. Review every changed file and resolve codemod comments before moving on. The codemod package is a migration tool; pin and verify the framework versions you intend to deploy.

3. Treat middleware as an auth and routing change

In Next.js 16 the convention is named proxy.ts; the old middleware.ts name is deprecated. Next.js 16 Proxy uses the Node.js runtime, so check any Edge-runtime assumptions while migrating. If Clerk and next-intl share the file, preserve the composition and matcher deliberately. The Clerk middleware reference and next-intl routing guide both document the Next.js 16 filename.

Proxy is not a substitute for authorization inside a server action or API handler. After renaming, verify both localized and default-locale dashboard routes, admin routes, API routes and webhook endpoints. SaaS Starter's architecture guide explains its middleware boundary; its organization guide covers checks that belong in mutations.

4. Check Turbopack and lint commands

Turbopack is the default for next dev and next build in Next.js 16. A custom Webpack configuration can make a default build fail; decide whether to migrate the configuration or explicitly keep using Webpack. Also replace scripts that call next lint: that command was removed in Next.js 16, and the build no longer runs linting for you.

5. Check Clerk's current compatibility floor

Clerk's Core 3 upgrade guide was last updated on 13 November 2026. It lists Node.js 20.9 or newer and requires @clerk/nextjs to use Next.js 15.2.8 or newer, or Next.js 16.0.10 or newer. If you enable Next.js 16 Cache Components, Clerk says ClerkProvider must be inside <body>. These are SDK-specific constraints; check the installed Clerk version and its official Core 3 upgrade guide before updating Clerk and Next.js together.

6. Verify the product paths that can fail quietly

  • Run type checking and the full test suite; confirm locale routing and translated screens still render.
  • Build with the same bundler choice used in deployment. Check that no lint command was implicitly lost.
  • Exercise signed-out and signed-in paths for dashboard, admin, invite acceptance, API keys and server actions.
  • Check Stripe webhook signature handling, checkout return URLs and billing portal paths in a safe test environment.
  • Review logs for request-time or rendering errors, then deploy through your normal staged release process.

For this repository, the documented verification sequence is npx tsc --noEmit, npm test, npm run audit, then npm run build. See the deployment guide before changing the runtime or build pipeline.

Should a Next.js 15 starter be upgraded before use?

That depends on your delivery schedule and compatibility requirements. Next.js 15 remains in its stated security-maintenance window through 31 January 2027, while Next.js 16 is Active LTS. A starter that currently targets 15 can still be evaluated as a 15-based codebase, but do not assume it has been migrated: check its actual dependency lockfile and test your own upgrade path. SaaS Starter's product pages describe a Next.js 15 kit; this guide is an upgrade checklist, not a claim that the kit now ships on Next.js 16.

For a codebase map before you start, read the architecture docs and agent workflow guide. The SaaS Starter feature overview shows the app surfaces a migration needs to preserve.