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
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.