fix: fix entry point for storybook, add storybook static ouput to gitignore (#67207)
This PR will fix https://github.com/vercel/next.js/issues/67206 - [x] contributing guidelines for examples are followed - [x] lint runs without errors
This commit is contained in:
parent
5999c78a4b
commit
b9ffa84303
2 changed files with 7 additions and 2 deletions
2
examples/with-storybook/.gitignore
vendored
2
examples/with-storybook/.gitignore
vendored
|
@ -35,4 +35,6 @@ yarn-error.log*
|
||||||
*.tsbuildinfo
|
*.tsbuildinfo
|
||||||
next-env.d.ts
|
next-env.d.ts
|
||||||
|
|
||||||
|
# storybook
|
||||||
*storybook.log
|
*storybook.log
|
||||||
|
/storybook-static
|
|
@ -1,7 +1,10 @@
|
||||||
import type { StorybookConfig } from "@storybook/nextjs";
|
import type { StorybookConfig } from "@storybook/nextjs";
|
||||||
|
|
||||||
const config: StorybookConfig = {
|
const config: StorybookConfig = {
|
||||||
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
|
stories: [
|
||||||
|
"../stories/**/*.mdx",
|
||||||
|
"../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)",
|
||||||
|
],
|
||||||
addons: [
|
addons: [
|
||||||
"@storybook/addon-links",
|
"@storybook/addon-links",
|
||||||
"@storybook/addon-essentials",
|
"@storybook/addon-essentials",
|
||||||
|
|
Loading…
Reference in a new issue