Next.js 12 to 13 changes that need Next.js 13

Proprietary

The Next.js 12 to 13 code change that only works once next has actually reached 13: removing the <a> child of Link, since Next.js 12's Link still needs it. It runs only where next already resolves to 13 or later. A project whose dependency upgrade is rejected (a git/workspace reference the upgrade cannot edit, or a peer conflict on next) keeps its working Next.js 12 Link markup.

io.moderne.nextjs.migrate.nextjs-12-to-13-after-upgrade
mod run . --recipe=io.moderne.nextjs.migrate.nextjs-12-to-13-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.