Next.js 14 to 15 changes that need Next.js 15

Proprietary

The changes of the Next.js 14 to 15 migration that the previous version ignores without an error: move serverComponentsExternalPackages, bundlePagesExternals and the outputFileTracing options out of experimental, and remove experimental.instrumentationHook. They run only where next already resolves to 15 or later. A project whose dependency upgrade is rejected keeps its working Next.js 14 config and gets a TODO(nextjs-upgrade).

io.moderne.nextjs.migrate.nextjs-14-to-15-after-upgrade
mod run . --recipe=io.moderne.nextjs.migrate.nextjs-14-to-15-after-upgrade

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.