Run the official Next.js codemod to upgrade your project to the latest version.
Run official Next.js codemods to upgrade your project to the latest version. Use this when you need to migrate between major versions safely with automated code transformations.
/plugin marketplace add W3Dev/coding-agent/plugin install nextjs-devtools-plugin@w3devRun the official Next.js codemod to upgrade your project to the latest version.
/nextjs-upgrade [--target=<version>] [--dry-run]
/nextjs-upgrade
/nextjs-upgrade --target=16
/nextjs-upgrade --dry-run
--target (optional): Target version (defaults to latest)--dry-run (optional): Preview changes without applying them