Next.js Discord

Discord Forum

What's the difference between Static and SSG in the build logs?

Unanswered
Porcelaine posted this in #help-forum
Open in Discord
PorcelaineOP
My build logs contain:
○  (Static)   prerendered as static content
●  (SSG)      prerendered as static HTML (uses getStaticProps)
λ  (Dynamic)  server-rendered on demand


Given 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
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