Skip to content

SSG

Static Site Generation

Medium — good to knowFrontend

ELI5 — The Vibe Check

SSG builds all your pages ahead of time — before anyone visits. You get a folder of plain HTML files that are blazing fast to serve from a CDN. The downside: you have to rebuild whenever content changes. Perfect for blogs, docs, and marketing sites.

Real Talk

SSG pre-renders pages at build time, producing static HTML, CSS, and JS files that can be deployed to a CDN. Because there's no server processing per request, it's extremely fast and cheap to host. Best for content that doesn't change per user or very frequently.

Show Me The Code

// Nuxt SSG nuxt generate
// Builds every page to static HTML at build time
// Deploy the output/ folder to any static host

When You'll Hear This

"Our marketing site uses SSG — it deploys to Vercel as static files." / "SSG can't show personalized content without client-side fetching."

Made with passive-aggressive love by manoga.digital. Powered by Claude.