nextjs upgrade code example
Example 1: next js update
npm install next@latest
Example 2: nextjs version 10
npm install next@latest
//upgrage from v9 to v10
npm install next@latest
npm install next@latest
//upgrage from v9 to v10