Next.js Discord

Discord Forum

SSG and PPR Does using ppr lose the benefits of using SSG?

Unanswered
Morelet’s Crocodile posted this in #help-forum
Open in Discord
Morelet’s CrocodileOP
When I don't use ppr my build looks like this:
├ ● /blog/[blogId]                                                 131 B         361 kB
├   └ /blog/1
└ ● /edit-blog/[blogId]                                            131 B         361 kB
    └ /edit-blog/1
+ First Load JS shared by all                                     116 kB
  ├ chunks/478-e5e37a2abe06eeaf.js                               46.8 kB
  ├ chunks/f5e865f6-ad1787d08483443f.js                          67.2 kB
  └ other shared chunks (total)                                  1.93 kB


ƒ Middleware                                                     85.9 kB

○  (Static)   prerendered as static content
●  (SSG)      prerendered as static HTML (uses generateStaticParams)
ƒ  (Dynamic)  server-rendered on demand

When I use PPR I get:
├ ◐ /blog/[blogId]                                                   0 B         375 kB
├   ├ /blog/[blogId]
├   └ /blog/1
└ ◐ /edit-blog/[blogId]                                              0 B         375 kB
    ├ /edit-blog/[blogId]
    └ /edit-blog/1
+ First Load JS shared by all                                     129 kB
  ├ chunks/5439c29574b7556b.js                                   72.4 kB
  ├ chunks/7c039a4bccc7503f.js                                     13 kB
  ├ chunks/a44a101d0dcfe4de.js                                   17.4 kB
  ├ chunks/fe68330320b5e007.js                                   12.2 kB
  └ other shared chunks (total)                                  13.7 kB


ƒ Middleware                                                     90.1 kB

○  (Static)             prerendered as static content
◐  (Partial Prerender)  prerendered as static HTML with dynamic server-streamed content
ƒ  (Dynamic)            server-rendered on demand


It shows the routes, but says they are PP is the output just not displaying correctly or do we lose the benefit of SSG with PPR?

2 Replies

Pacific sand lance
with ppr static content is sent immediately, rest is streamed and patched later
Morelet’s CrocodileOP
Yes I get that but my question is when I turn ppr off it shows routes that I have genrated static params as SSG and static but when I turn PPR on the same routes look like their being prerendered but the build output shows ◐ (Partial Prerender) prerendered as static HTML with dynamic server-streamed content on routes that should be SSG part of me thinks this is because its an unreleased feature and the build output does not show the real build output.