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 1e9e0c4 commit 36ec879
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions code/frameworks/nextjs/src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ export const config: StorybookConfig['previewAnnotations'] = (entry = []) => [
require.resolve('@storybook/nextjs/preview.js'),
];

export const env = (envConfig: PresetProperty<'env', StorybookConfig>) => {
return {
...envConfig,
// 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 36ec879

Please sign in to comment.