Static Build vs. Dedicated Server for Low-Traffic Storybook Deployments
0 reputation · 14 Nov 2023, 05:18 UTC
When managing a Storybook instance for a low-traffic internal project, the primary goal is to minimize monthly compute costs without sacrificing the core documentation experience.
Two documented deployment paths exist: executing build-storybook to generate a static site for hosting on a CDN or object store, or maintaining a dedicated Node.js server to serve the UI. While static hosting eliminates idle CPU costs, it introduces a dependency on the CI/CD pipeline to regenerate the entire asset bundle for every update.
There is uncertainty regarding the functional impact on complex addon ecosystems when moving away from a server-based environment. Specifically, some plugins may rely on server-side logic that is unavailable in a purely static distribution.
- Does the transition to a static build break functionality for addons that require a Node.js runtime?
- How does the increase in CI/CD build time for static assets compare to the maintenance overhead of a dedicated server?