Storybook Static Site Deployment
Storybook can be exported as a static site for deployment, perfect for hosting interactive documentation guides.
Build Static Site
npm run build-storybook
This creates a storybook-static/ directory with all the static files ready for deployment.
Deployment Options
Netlify
- Build Storybook:
npm run build-storybook - Deploy the
storybook-staticdirectory:
netlify deploy --prod --dir=storybook-static
Or add to netlify.toml:
[build]
command = "npm run build-storybook"
publish = "storybook-static"
AWS Amplify / S3
- Build Storybook:
npm run build-storybook - Upload
storybook-static/to S3 bucket - Configure S3 bucket for static website hosting
- Set
EXPO_PUBLIC_STORYBOOK_URLto the S3 URL
GitHub Pages
- Build Storybook:
npm run build-storybook - Publish the
storybook-static/directory from the repository root or a dedicated hosting branch - Enable GitHub Pages or another static host for the Storybook output
Vercel
- Build Storybook:
npm run build-storybook - Deploy:
vercel --prod storybook-static
Environment Variable
Set EXPO_PUBLIC_STORYBOOK_URL to point to your deployed Storybook:
EXPO_PUBLIC_STORYBOOK_URL=https://storybook.yourdomain.com
Features
- ✅ Interactive step-by-step guides
- ✅ Component documentation
- ✅ User onboarding guide
- ✅ Speaker onboarding guide
- ✅ Troubleshooting sections
- ✅ Fully static (no server required)
- ✅ Works offline after first load
Integration
The app's docs surface can include a button to open Storybook. When deployed, update EXPO_PUBLIC_STORYBOOK_URL to point to the published static site.