You should be able to migrate directly to Storybook v7 and its frameworks api for Nextjs. @storybook/nextjs
is designed to be a drop in replacement for this addon. Below are some helpful links for you to perform this migration.
- Nextjs migration docs
- Integrate Next.js and Storybook automatically
- Storybook migration docs
- Storybook upgrade docs
It is strongly recommended to use their auto migration scripts performed when running npx storybook@next upgrade --prerelease
or more directly npx storybook@next automigrate
. This should automate migration from this addon directly to @storybook/nextjs
while also migrating you to Storybook v7.
Supporting Storybook v7 for this addon is currently in development. See this issue for more details.