Skip to content

Commit

Permalink
chore(docs): Update Storybook Vite docs to reflect recent change (#10987
Browse files Browse the repository at this point in the history
)

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 :)
  • Loading branch information
arimendelow authored Jul 19, 2024
1 parent 8a68c13 commit 81153e6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/docs/storybook/vite.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
description: Older version of Storybook integration; uses Vite
description: Newer version of Storybook integration; uses Vite
---

# Storybook Vite
Expand All @@ -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`.

Expand Down

0 comments on commit 81153e6

Please sign in to comment.