Skip to content

Commit

Permalink
Fix next@13 next/link
Browse files Browse the repository at this point in the history
  • Loading branch information
kylegach committed Nov 14, 2022
1 parent 02e4a69 commit f4c4809
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions code/frameworks/nextjs/src/preset.ts
Expand Up @@ -68,6 +68,14 @@ export const config: StorybookConfig['previewAnnotations'] = (entry = []) => [
require.resolve('@storybook/nextjs/preview.js'),
];

export const env = (config: PresetProperty<'env', StorybookConfig>) => {
return {
...config,
// Can be removed after https://github.com/vercel/next.js/issues/42621 is resolved
__NEXT_NEW_LINK_BEHAVIOR: 'true',
};
};

// Not even sb init - automigrate - running dev
// You're using a version of Nextjs prior to v10, which is unsupported by this framework.

Expand Down

0 comments on commit f4c4809

Please sign in to comment.