Static site generation

SSG

Definition

Static site generation is the practice of building every page of a site into a finished HTML file at build time, so requests are served as files with no rendering work per visit.

A statically generated site is fast, cheap to host and hard to break under traffic, because serving it is serving files. It is also easy to distribute, since a file can sit on a CDN close to every visitor.

The limit is build time. Every content change requires a build, and once a site has tens of thousands of pages that build stops being instant, which is the problem incremental strategies exist to solve.

Back to the glossary