Skip to content

Commit

Permalink
Merge pull request #24178 from storybookjs/yann/nextjs-config-to-prev…
Browse files Browse the repository at this point in the history
…iew-annotations

Nextjs: Migrate from config to previewAnnotations
(cherry picked from commit 896b2e7)
  • Loading branch information
ndelangen authored and storybook-bot committed Sep 15, 2023
1 parent 63e6a99 commit 1fb2ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/frameworks/nextjs/src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const core: PresetProperty<'core', StorybookConfig> = async (config, opti
};
};

export const config: StorybookConfig['previewAnnotations'] = (entry = []) => [
export const previewAnnotations: StorybookConfig['previewAnnotations'] = (entry = []) => [
...entry,
require.resolve('@storybook/nextjs/preview.js'),
];
Expand Down

0 comments on commit 1fb2ac8

Please sign in to comment.