Next.js 12 to 13 code changes

Proprietary

Migrate a Next.js 12 codebase to Next.js 13 without changing dependency versions. Applies the React 17 to 18 code changes Next.js 13 requires, imports next/image for the next/future/image component and next/legacy/image where the old props are used, removes experimental.appDir, and uses output: 'standalone'. The <a> child of Link stays until next has reached 13, since Next.js 12's Link still needs it.

io.moderne.nextjs.migrate.nextjs-12-to-13-code-changes
mod run . --recipe=io.moderne.nextjs.migrate.nextjs-12-to-13-code-changes

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