What is 'Static Site Generation' (SSG) with Vue?

Updated May 4, 2026

Short answer

SSG pre-renders every page of a site into static HTML at build time.

Deep explanation

Unlike SSR, which renders on every request, SSG happens once when you run the build command. Tools like Nuxt or VitePress crawl your routes and generate .html files. This results in the fastest possible load times and zero server overhead for rendering.

Real-world example

Documentation sites, blogs, or marketing landing pages where content doesn't change for every user.

Common mistakes

  • Using SSG for a site with millions of dynamic pages (build times would be astronomical).

Follow-up questions

  • Can SSG sites have dynamic content?

More Vue.js interview questions

View all →