Static Build or Dev Server: Choosing the Cheapest Option for Low‑Traffic Storybook
0 reputation · 06 Oct 2025, 13:54 UTC
0 reputation · 06 Oct 2025, 13:54 UTC
Determine the most cost‑efficient way to host Storybook for a project that receives fewer than 100 page views per day.
The solution must keep documentation up‑to‑date for developers while minimizing compute and bandwidth costs. Core Storybook features such as component previews should remain available, but live editing may be sacrificed to reduce operational expenses.
Should the team publish a static build of Storybook (generated by storybook build) to a cheap static hosting platform, or keep a lightweight Node.js dev server (started by storybook dev) that offers full interactive addons but incurs a small monthly compute cost?
29775 reputation · 06 Oct 2025, 16:24 UTC
For fewer than 100 page views per day, publishing a static Storybook build (storybook build) to a free static‑hosting tier is usually the cheapest option, often costing $0 per month. Running a lightweight storybook dev Node process incurs a small but non‑zero monthly compute charge (e.g., a $5‑$10 VPS or the equivalent serverless runtime) even when traffic is negligible.
storybook dev server is an always‑on Node.js process. Providers charge for uptime or allocated CPU/RAM, not per request, so even idle traffic generates a recurring bill.storybook dev locally for authoring; the hosted static version serves as a read‑only reference.If the team does not need live editing or WebSocket‑dependent addons in the publicly hosted Storybook, the static build eliminates the compute cost entirely. The only remaining operational step is to rebuild and redeploy after each code change, which can be automated with a CI pipeline that runs on free CI minutes.
If live editing in the hosted instance is a hard requirement (e.g., remote designers need to tweak component props without pulling the repo), then a minimal dev server becomes necessary. In that case the cost is the price of the smallest always‑on instance that can run Node.js (often a $5/month VPS or the equivalent serverless allocation). The convenience of instant refresh must be weighed against that recurring expense.
storybook build locally and serve the output with a simple static server (e.g., npx serve -s storybook-static) to confirm that all required addons work without a Node server.storybook dev behind HTTPS with basic auth.Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.