Skip to content

Rendering

Static Site Generation (SSG)

Also: SSG

Building every page as static HTML at build time and serving from a CDN.

Definition

SSG generates all pages once at build time. The HTML is deployed as files; the CDN serves the pre-built HTML directly. There is no per-request server rendering. TTFB is whatever the CDN responds in, usually 30 to 100ms. Cache invalidation requires a rebuild and redeploy. Examples: Astro by default, Next.js with generateStaticParams, Hugo, Eleventy.

See also

Need this concept applied to your stack?

Glossary entries are intentionally short. Real engineering tradeoffs need a scoping call — bring the domain, the stack, and the question.