What is Static Site Generation (SSG) in Nuxt.js?

Answer

Static Site Generation (SSG) in Nuxt.js pre-renders all pages to static HTML files at build time rather than at request time. This is achieved using nuxt generate. The resulting HTML files can be deployed to any static hosting provider (Netlify, Vercel, GitHub Pages) without a Node.js server. SSG is ideal for content that doesn't change frequently — blogs, documentation, marketing sites. Nuxt 3 also supports ISR (Incremental Static Regeneration) through Nitro, allowing specific routes to revalidate and regenerate at configurable intervals.