diff --git a/code/lib/builder-vite/src/index.ts b/code/lib/builder-vite/src/index.ts index b397f3b7438b..421354d3d8cd 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/build-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($|\?)/)) {