Overview

With SSG, every page is pre-rendered into a static HTML file during the build process. These files can then be deployed to a CDN and served instantly to users. This is the core of the Jamstack architecture.

Benefits

  • Performance: Serving static files from a CDN is incredibly fast.
  • Security: No database or server-side code to exploit at runtime.
  • Scalability: Static files are easy to scale globally.
  • SEO: Search engines receive fully rendered HTML.

Popular Tools

  • Next.js
  • Gatsby
  • Astro
  • Hugo

Related Terms