Follow the [upgrade guide](https://nextjs.org/docs/upgrading)
Follow the upgrade guide