Web Development
What is SSG (Static Site Generation)?
Pre-rendering web pages at build time into static HTML files.
Definition
Static Site Generation (SSG) pre-renders pages into HTML files during the build process. These files are served from a CDN without any server processing, resulting in extremely fast load times. SSG is ideal for content that doesn't change frequently — blogs, documentation, marketing pages. Tools like Next.js, Astro, Hugo, and Gatsby support SSG. Incremental Static Regeneration (ISR) lets you update static pages without a full rebuild.