Hi, I have install storybook 7 with npx storybook@next init and using @storybook/nextjs in my new Next JS 13 project and I can't seem to manage to make the next/link => <Link /> work inside a story (not to log in the actions panel but to actually navigate to the selected section in the main navigation). With Create React App + storybook 6 I was able to load a SPA in a story and use the navigation to browse between sections by adding a decorator, something like:
return (
<MemoryRouter>
<Routes>
<Route path="/*" element={<Story />} />
</Routes>
</MemoryRouter>
);
};
export default {
title: "Client/Website",
component: App,
decorators: [reactRouterDecorator],
} as ComponentMeta<typeof App>;```
Is there anyway to achieve the same with sb7 and Next 13?
Many thanks