Unverified Commit c0282712 authored by Augustin Mauroy's avatar Augustin Mauroy Committed by GitHub

chore(example): update storybook (#60737)

### What?

- update storybook version
- use `SWC` for perf
- pinging dep for security of the example
- update readme to have correct link
Co-authored-by: 's avatarSam Ko <sam@vercel.com>
parent 0c1741c4
...@@ -8,7 +8,11 @@ const config: StorybookConfig = { ...@@ -8,7 +8,11 @@ const config: StorybookConfig = {
], ],
framework: { framework: {
name: "@storybook/nextjs", name: "@storybook/nextjs",
options: {}, options: {
builder: {
useSWC: true,
},
},
}, },
docs: { docs: {
autodocs: "tag", autodocs: "tag",
......
# Example app with Storybook # Example app with Storybook
This example shows a default set up of Storybook using [storybook-addon-next](https://github.com/RyanClementsHax/storybook-addon-next). Included in this example are stories that demonstrate the ability to use Next.js features in Storybook. This example shows a default set up of Storybook using [`@storybook/nextjs`](https://www.npmjs.com/package/@storybook/nextjs). Included in this example are stories that demonstrate the ability to use Next.js features in Storybook.
### TypeScript ### TypeScript
......
...@@ -18,14 +18,14 @@ ...@@ -18,14 +18,14 @@
"typescript": "5.0.4" "typescript": "5.0.4"
}, },
"devDependencies": { "devDependencies": {
"@storybook/addon-essentials": "^7.0.6", "@storybook/addon-essentials": "~7.6.8",
"@storybook/addon-interactions": "^7.0.6", "@storybook/addon-interactions": "~7.6.8",
"@storybook/addon-links": "^7.0.6", "@storybook/addon-links": "~7.6.8",
"@storybook/blocks": "^7.0.6", "@storybook/blocks": "~7.6.8",
"@storybook/nextjs": "^7.0.6", "@storybook/nextjs": "~7.6.8",
"@storybook/react": "^7.0.6", "@storybook/react": "~ 7.6.8",
"@storybook/testing-library": "^0.0.14-next.2", "@storybook/testing-library": "^0.0.14-next.2",
"storybook": "^7.0.6" "storybook": "~7.6.8"
}, },
"engines": { "engines": {
"node": ">=16" "node": ">=16"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment