Rendering

SSG

Pages are rendered once at build time into plain HTML files, then served as-is to everyone.

Rather than rendering per request (SSR) or in the browser (CSR), you generate all the HTML ahead of time when you deploy. It's blazing fast and dirt cheap because there's no server work per visit — just a static file handed off from a CDN. Perfect for content that's the same for every visitor: marketing pages, blogs, docs. The catch is that when content changes you have to rebuild the site (or use incremental regeneration to refresh only the pages that changed).

Related terms