Next.js 13 to 14 code changes

Proprietary

Migrate a Next.js 13 codebase to Next.js 14 without changing dependency versions: import ImageResponse from next/og, move viewport and themeColor out of metadata, remove the experimental.serverActions flag, and replace images.domains with images.remotePatterns. Moves the @next/font imports to the built-in next/font and then removes the @next/font package, which Next.js 14 dropped.

io.moderne.nextjs.migrate.nextjs-13-to-14-code-changes
mod run . --recipe=io.moderne.nextjs.migrate.nextjs-13-to-14-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.