Upgrade the current project to the latest Next.js version following official migration guides. 1. **Detect current version**: Read `package.json` to identify the current Next.js version and related dependencies (React, React DOM, etc.) 2. **Fetch the latest upgrade guide**: Use WebFetch to get the official upgrade documentation:
package.json to identify the current Next.js version and related dependencies (React, React DOM, etc.)npx @next/codemod@latest <transform> <path>next-async-request-api - Updates async Request APIs (v15)next-request-geo-ip - Migrates geo/ip properties (v15)next-dynamic-access-named-export - Transforms dynamic imports (v15)npm install next@latest react@latest react-dom@latestnext.config.jsnpm install @types/react@latest @types/react-dom@latestnpm run build to check for build errorsnpm run dev and test key functionality