Skip to content

Commit

Permalink
docs(deployment): add instructions about deployment on ZEIT Now (#8257)
Browse files Browse the repository at this point in the history
docs(deployment): add instructions about deployment on ZEIT Now
  • Loading branch information
ndelangen authored Oct 2, 2019
2 parents 3a928b7 + 70b703b commit 9bfdceb
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/src/pages/basics/exporting-storybook/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 9bfdceb

Please sign in to comment.