Skip to content

Commit

Permalink
Reinstante (deprecated) StorybookViteConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Dec 2, 2022
1 parent 2d4150c commit e495fe2
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/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($|\?)/)) {
Expand Down

0 comments on commit e495fe2

Please sign in to comment.