Skip to content

Commit

Permalink
Merge pull request #22058 from storybookjs/chore_minor_snippets_updates
Browse files Browse the repository at this point in the history
Chore: (Docs) Snippets Minor polish to framework references
  • Loading branch information
jonniebigodes authored Apr 12, 2023
2 parents 9820891 + 4a4931d commit d27296d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,10 @@ For example:
```ts
import type { StorybookConfig } from '@storybook/react-vite';
const config: StorybookConfig = {
framework: '@storybook/react-vite',
framework: {
name: '@storybook/react-vite',
options: {}
},
// ... your configuration
};
export default config;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
```ts
// .storybook/main.ts

import type { StorybookConfig } from '@storybook/react-vite'; // your framework
import type { StorybookConfig } from '@storybook/react-vite';

const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../stories/**/*.stories.@(js|jsx|ts|tsx)'],
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
framework: '@storybook/react-vite',
framework: {
name: '@storybook/react-vite',
options: {},
},
async viteFinal(config, options) {
// Add your configuration here
return config;
Expand Down

0 comments on commit d27296d

Please sign in to comment.