From 5a7af5786c1b2d761cf3a8538192431ddcde2812 Mon Sep 17 00:00:00 2001 From: Gert Hengeveld Date: Tue, 24 Dec 2024 10:58:02 +0100 Subject: [PATCH] Add Vite alias for sb-original/image-context to internal Storybook config --- code/.storybook/main.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/.storybook/main.ts b/code/.storybook/main.ts index 623d6f5c525e..9870741de29e 100644 --- a/code/.storybook/main.ts +++ b/code/.storybook/main.ts @@ -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: [ @@ -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, } : {}), },