What's the difference between Static and SSG in the build logs?
Unanswered
Porcelaine posted this in #help-forum
PorcelaineOP
My build logs contain:
Given that statically generated content is static, it's quite confusing what the difference between "Static" and "SSG" is. Can anyone clarify?
○ (Static) prerendered as static content
● (SSG) prerendered as static HTML (uses getStaticProps)
λ (Dynamic) server-rendered on demandGiven that statically generated content is static, it's quite confusing what the difference between "Static" and "SSG" is. Can anyone clarify?
4 Replies
Palomino
SSG its whe you use UIDs dynamic route, static is just a static path with the content from a CMS or static component based
SSG is for pre-rendering a subset of dynamic routes at build time: https://nextjs.org/docs/app/building-your-application/routing/dynamic-routes#generating-static-params
Dynamic is for pages that use dynamic routes (but are not pre-rendered using the function i sent above), or IIRC pages that use dynamic functions like headers() or cookies()
And static is everything else