Next.js Discord

Discord Forum

Understanding Partial Prerendering

Unanswered
Saltwater Crocodile posted this in #help-forum
Open in Discord
Saltwater CrocodileOP
I'm not sure whether I understand partial prerendering. NextJs website is saying "Partial Prerendering is an experimental feature that allows you to render a route with a static loading shell, while keeping some parts dynamic."

On my local Windows machine I've picked up the repo from https://www.partialprerendering.com

I've added console.log('LAYOUT', new Date()) to layout.tsx and console.log('PAGE', new Date()) to page.tsx.

The I run next build and next start. On each refresh I see the console log on my server. Why is that? I would have expected the layout and page to be statically rendered once during build, but not on every refresh.

0 Replies