Skip to content

Commit

Permalink
Merge pull request #20057 from storybookjs/tom/sb-918-sb19730-builder…
Browse files Browse the repository at this point in the history
…-vite-does-not-export

Vite: Reinstate (deprecated) `StorybookViteConfig`
  • Loading branch information
shilman authored Dec 3, 2022
2 parents 585edb6 + 167833f commit 2c9b0f5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions code/lib/builder-vite/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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($|\?)/)) {
Expand Down

0 comments on commit 2c9b0f5

Please sign in to comment.