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.
Build Time: Templates + Data -> Pre-rendered HTML/CSS/JS -> Cached and Served at CDN EdgeWorked 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
Free tool
Live Launch Readiness CheckerInspect any live URL for HTTPS, title, meta description, canonical, Open Graph cards, JSON-LD and AI search crawler access.Free tool
Launch Day ChecklistEverything to check before, during and after launch day, saved in your browser.Founder guide
The Next.js Technical SEO Launch Checklist (2026)What to check before and after launch day: crawlability, metadata, canonical URLs, structured data, sitemaps, internal links, Core Web Vitals and AI crawlers.Founder guide
Landing Page Copy for Developers: Write a Homepage That Explains ItselfDevelopers tend to write homepages that list features. Visitors want to know what it is, whether it's for them and what to do next. A section-by-section guide, with a template.Related glossary terms
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.