Skip to content

版本 9 和 10 之间没有破坏性变更。

要升级到版本 10,请运行以下命令:

bash
npm i next@10
bash
yarn add next@10
bash
pnpm up next@10
bash
bun add next@10

须知: 如果您正在使用 TypeScript,请确保您也升级 @types/react@types/react-dom 到相应的版本。