Development

    SSG (Static Site Generation)

    A rendering strategy that generates HTML pages at build time rather than on each request.

    Share

    Key Takeaways

    • SSG delivers the fastest possible page loads: pre-built HTML served from CDN with zero server processing.
    • Incremental Static Regeneration (ISR) in Next.js updates individual pages without rebuilding the entire site.
    • SSG is ideal for content that changes infrequently: marketing sites, blogs, docs, and product catalogs.

    When to Use SSG vs SSR

    ScenarioBest ApproachWhy
    Blog, docs, marketing pagesSSGContent rarely changes, maximum speed
    E-commerce product pagesSSG + ISRPre-build popular pages, regenerate on change
    Personalized dashboardSSR or CSRContent differs per user
    Real-time data (stock prices)SSR or CSRData changes every second
    Large catalog (100K+ pages)SSG + ISRBuild popular pages, generate rest on demand

    The best applications use multiple strategies. Marketing pages use SSG. User dashboards use CSR. Product pages use ISR. Next.js makes this per-page choice straightforward.

    Frequently Asked Questions

    Need Help With Implementation?

    Our team specializes in implementing the solutions described in this glossary.

    Get in Touch