mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-21 05:02:39 +08:00
docs(deployment): add instructions about deployment on ZEIT Now (#8257)
docs(deployment): add instructions about deployment on ZEIT Now
This commit is contained in:
commit
9bfdcebbe3
@ -36,3 +36,19 @@ npx http-server .out
|
||||
Additionally, you can deploy Storybook directly into GitHub pages with our [storybook-deployer](https://github.com/storybookjs/storybook-deployer) tool.
|
||||
|
||||
Or, you can simply export your storybook into the docs directory and use it as the root for GitHub pages. Have a look at [this guide](https://github.com/blog/2233-publish-your-project-documentation-with-github-pages) for more information.
|
||||
|
||||
## Deploying to ZEIT Now
|
||||
|
||||
[ZEIT Now](https://zeit.co/home) is a cloud platform for websites and serverless APIs, that you can use to deploy your Storybook projects to your personal domain (or a free `.now.sh` suffixed URL).
|
||||
|
||||
- Install the [Now CLI](https://github.com/zeit/now):
|
||||
|
||||
`npm i -g now`
|
||||
|
||||
- Configure your `build` script:
|
||||
|
||||
`"build": "build-storybook -c .storybook -o public"`
|
||||
|
||||
- Execute `now` on your terminal.
|
||||
|
||||
[Example project](https://github.com/zeit/now-examples/tree/master/storybook) for reference.
|
||||
|
Loading…
x
Reference in New Issue
Block a user