diff --git a/code/lib/builder-vite/src/index.ts b/code/lib/builder-vite/src/index.ts index b397f3b7438b..e55dd1d36697 100644 --- a/code/lib/builder-vite/src/index.ts +++ b/code/lib/builder-vite/src/index.ts @@ -32,6 +32,15 @@ export type StorybookConfig = StorybookBaseConfig & { viteFinal?: ViteFinal; }; +/** + * @deprecated + * + * Use `import { StorybookConfig } from '@storybook/builder-vite';` + * + * Or better yet, import from your framework. + */ +export type StorybookViteConfig = StorybookConfig; + function iframeMiddleware(options: ExtendedOptions, server: ViteDevServer): RequestHandler { return async (req, res, next) => { if (!req.url.match(/^\/iframe\.html($|\?)/)) {