Esc
  • Jump to
  • The board
  • All launchesSort and filter by week or category
  • Open statsEvery number, in public
  • Maker storiesApps that stopped hiding
  • Submit a launch
  • AICategory
  • AnalyticsCategory
  • API & BackendCategory
  • Audio & VoiceCategory
  • AutomationCategory
  • CommunityCategory
↑↓ to move↵ to openPress / anywhere
Sign in

What is Static Site Generation (SSG)?

A rendering method that compiles pages into finished HTML, CSS, and JavaScript files at build time so a CDN can serve them immediately without running server code on each visit.

Updated · Building

Plain definition

Definition of Static Site Generation (SSG)

A rendering method that compiles pages into finished HTML, CSS, and JavaScript files at build time so a CDN can serve them immediately without running server code on each visit.

Formula / syntaxBuild Time: Templates + Data -> Pre-rendered HTML/CSS/JS -> Cached and Served at CDN Edge

Worked example

Consider a made-up developer documentation tool called DocSpire whose public site includes a homepage, pricing page, 12 guides, and 40 changelog posts. Rather than querying a database and assembling HTML on every single page load, DocSpire pre-renders all 54 marketing routes during `next build` using static routes and `generateStaticParams` for dynamic slugs.

When a launch-day post brings 4,000 visitors in ten minutes, the CDN edge serves those pre-built HTML files directly from cache with near-zero origin database load and fast first paint. Search crawlers receive complete HTML titles, headings, and structured data immediately without waiting for client-side JavaScript to fetch content. Meanwhile, DocSpire keeps its logged-in dashboard dynamically rendered because every customer views private account data, and uses a deploy webhook whenever a new changelog entry publishes.

Why it matters when you launch

Launch day creates sudden, uneven traffic spikes right when you have the least time to debug an overloaded server or database pool. Serving your landing page, guides, glossary, and pricing page as pre-rendered static HTML means a traffic surge from a popular forum or launch board will not take your marketing site down or trigger surprise compute bills.

SSG also gives new domains a clean technical SEO foundation out of the box. Crawlers and AI bots parse plain HTML reliably, Open Graph tags render consistently for link previews, and snappy page loads keep impatient visitors from closing the tab before they read your headline.

Common mistakes

  • Using pure SSG for pages that depend on real-time inventory, per-user sessions, or rapidly changing scores without adding revalidation or dynamic rendering.
  • Accidentally calling request-time APIs like cookies or dynamic headers inside a shared layout, silently forcing every marketing page out of static generation.
  • Forgetting to trigger a rebuild or revalidation webhook when CMS content updates, leaving edited pricing or typo fixes stuck on old cached HTML.
  • Pre-rendering tens of thousands of low-value pages at build time, which slows every deployment to a crawl when on-demand rendering or pruning makes more sense.

Tools and guides that use it

Official sources

Pritam Ghosh runs Hauntboard and maintains this glossary.

Published · Updated

Building something real? Launch it in public.

A person reviews every launch on Hauntboard, and every view and visit it sends your site is published on your launch page. Free to submit.

Launch free →

On the board

All →

Still hiding your app?

Put it on the board. Reviewed by a person, free to launch.

Launch free
Submit a launch