Skip to content

Commit

Permalink
Add Vite alias for sb-original/image-context to internal Storybook co…
Browse files Browse the repository at this point in the history
…nfig
  • Loading branch information
ghengeveld committed Dec 24, 2024
1 parent 3258fc7 commit 5a7af57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type { StorybookConfig } from '../frameworks/react-vite';

const componentsPath = join(__dirname, '../core/src/components');
const managerApiPath = join(__dirname, '../core/src/manager-api');
const imageContextPath = join(__dirname, '..//frameworks/nextjs/src/image-context.ts');

const config: StorybookConfig = {
stories: [
Expand Down Expand Up @@ -146,6 +147,7 @@ const config: StorybookConfig = {
'storybook/internal/components': componentsPath,
'@storybook/manager-api': managerApiPath,
'storybook/internal/manager-api': managerApiPath,
'sb-original/image-context': imageContextPath,
}
: {}),
},
Expand Down

0 comments on commit 5a7af57

Please sign in to comment.