Fix stories for components using useRouter
It would result in the following error: > invariant expected app router to be mounted
This commit is contained in:
Родитель
9a27ae7b20
Коммит
0d91de1fd6
|
@ -46,6 +46,10 @@ const preview: Preview = {
|
|||
},
|
||||
// https://storybook.js.org/docs/react/configure/story-layout
|
||||
layout: "fullscreen",
|
||||
nextjs: {
|
||||
// See https://storybook.js.org/blog/integrate-nextjs-and-storybook-automatically/#nextnavigation
|
||||
appDirectory: true,
|
||||
},
|
||||
},
|
||||
decorators: [AppDecorator],
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче