Skip to content

Glossary · FrontendAlso: SSG, Pre-rendering

What is static site generation (SSG)?

Static site generation (SSG) builds every page's HTML once, at build time, and serves those files as they are. Because nothing is computed per request, pages can be cached on a CDN close to every visitor and load very fast.

Source: MDN: SSG

Why it matters

For content that is the same for everyone, such as marketing pages, documentation and blogs, static generation is the fastest and cheapest way to serve a site.

Its limit is freshness: content changes only when the site rebuilds, which is why frameworks add incremental regeneration for large or frequently updated sites.

Example

// in practice

This site's articles are generated at build time and served from the edge, so a new visitor gets finished HTML without waiting on a database.

Go deeper

Next step

Need this done properly?

Tell us what you are building. A senior engineer replies within one business day with specific, honest next steps.

First reply
Within 1 business day
Typical start
1–2 weeks
Pricing
Fixed price per phase
You own
All code and accounts