A static site generator (SSG) is a tool that turns templates and content, such as Markdown files or CMS data, into a folder of ready-made HTML pages during a build step. Examples include Hugo, Jekyll and Eleventy.
Why it matters
Static files are fast, cheap to host, easy to cache on a CDN and have little to attack, since there is no database or server code per request. They are well suited to blogs, documentation and marketing sites. Limits appear with frequently changing or highly personalized content, where each change needs a rebuild.
Example
$ hugo
Start building sites ...
| EN
-------------------+-----
Pages | 42
Total in 150 ms
The generated public/ folder can be uploaded to any web server or object storage bucket and served directly.
Common mistakes
- Assuming static means no interactivity. JavaScript and external APIs can still add dynamic features.
- Forgetting to trigger a rebuild after updating content in a headless CMS.
- Letting build times grow unchecked on very large sites.
Related
Get notified when this term updates
Plus occasional practical tips on uptime and monitoring, nothing else. Unsubscribe anytime.
This page is general information written by our editorial team and updated when documentation changes. Servers and providers differ, so test changes safely first. See our editorial policy and disclaimer.