From 81153e6795db97e14d74b42ab2a40190b75bc79f Mon Sep 17 00:00:00 2001 From: Ari Mendelow Date: Fri, 19 Jul 2024 15:04:59 -0700 Subject: [PATCH] chore(docs): Update Storybook Vite docs to reflect recent change (#10987) In #10900, we disabled the type declaration file created by the Auto Import plugin used by Storybook Vite. This PR updates the docs to reflect that. Also fixed a typo :) --- docs/docs/storybook/vite.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/docs/storybook/vite.md b/docs/docs/storybook/vite.md index 0ceb1a427a57..4109403c9517 100644 --- a/docs/docs/storybook/vite.md +++ b/docs/docs/storybook/vite.md @@ -1,5 +1,5 @@ --- -description: Older version of Storybook integration; uses Vite +description: Newer version of Storybook integration; uses Vite --- # Storybook Vite @@ -25,8 +25,6 @@ Additionally, if it's your first time running `storybook-vite`, the Redwood CLI - This is the primary [Storybook configuration file](https://storybook.js.org/docs/configure). Note that it references the brand new framework package, [`storybook-framework-redwoodjs-vite`](https://www.npmjs.com/package/storybook-framework-redwoodjs-vite). - `web/.storybook/preview-body.html` - This is required to change the `id` of the root div to `redwood-app`, which is what the entry file used by Vite requires. -- `web/src/auto-imports.d.ts` - - Created by [`unplugin-auto-import`](https://github.com/unplugin/unplugin-auto-import), which is used by the Framework Package [here](https://github.com/redwoodjs/redwood/blob/main/packages/storybook/src/plugins/auto-imports.ts). Once Storybook is all set up, it'll spin up on port `7910`.