Problem Statement
What is Static Site Generation (SSG) in Next.js?
Explanation
Static Site Generation pre-renders pages at build time, creating HTML files that are served instantly from a CDN without running server code on each request, resulting in the fastest possible page loads and best performance. SSG is perfect for content that doesn't change often like marketing pages, blogs, documentation, or e-commerce product pages. The same pre-built HTML is served to all users until the next build, making it extremely fast and cost-effective.
Practice Sets
This question appears in the following practice sets: