How to properly implement Next.js 15 Partial Prerendering (PPR) with dynamic Mongoose queries?
asked 75 days ago
0
0
I am trying to optimize the performance of my DevFlow home page using Next.js 15's Partial Prerendering (PPR).
My goal is to make the static layout shells (like the navbar, sidebar, and search container) load instantly from the CDN, while the central question feed—which fetches live data via Mongoose from MongoDB Atlas—streams in via a loading skeleton once the database finishes responding.
However, when I enable PPR in my next.config.ts, the entire page still blocks and waits for the Mongoose query to resolve, making it behave like a fully server-side rendered (SSR) page instead of streaming components incrementally.
Here is my current page structure:
0 Answers


No Answers Found
The answer board is empty. Make it rain with your brilliant answer.
1