demo serving storybook static build with serve (#24812)
Unfortunately I couldn't push up changes for that branch as maintainers access was disabled. Closes #18775 ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. ## Documentation / Examples - [ ] Make sure the linting passes
This commit is contained in:
parent
83395c92ec
commit
3a2b88b307
3 changed files with 6 additions and 3 deletions
2
examples/with-storybook/.gitignore
vendored
2
examples/with-storybook/.gitignore
vendored
|
@ -34,4 +34,4 @@ yarn-error.log*
|
|||
.vercel
|
||||
|
||||
# Storybook
|
||||
/storybook-static
|
||||
/storybook-static
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
"build": "next build",
|
||||
"start": "next start",
|
||||
"storybook": "start-storybook -p 6006",
|
||||
"build-storybook": "build-storybook"
|
||||
"build-storybook": "build-storybook -s public/",
|
||||
"serve-storybook": "serve storybook-static"
|
||||
},
|
||||
"dependencies": {
|
||||
"next": "latest",
|
||||
|
@ -19,6 +20,7 @@
|
|||
"@storybook/addon-essentials": "6.0.26",
|
||||
"@storybook/addon-links": "6.0.26",
|
||||
"@storybook/react": "6.0.26",
|
||||
"babel-loader": "^8.0.5"
|
||||
"babel-loader": "^8.0.5",
|
||||
"serve": "11.3.2"
|
||||
}
|
||||
}
|
||||
|
|
1
examples/with-storybook/public/serve.json
Normal file
1
examples/with-storybook/public/serve.json
Normal file
|
@ -0,0 +1 @@
|
|||
{}
|
Loading…
Reference in a new issue