Every page is built before anyone asks for it
Server response times fell from up to 380 ms to under 10 ms. Nothing had been prerendered.

Next.js can build each page once, at deploy, and serve the finished HTML to every visitor. The front end asked WordPress for the list of pages to build, then read each path from a field the list didn’t have. The list came back empty, so every page was built on its first visit instead.
What changed
- The client package reads each path from the field WordPress actually sends
- The build prerenders every page and post
- Publishing still rebuilds only the pages it affects
The numbers
Measured on a local production build, before any CDN:
- Server response for a page nobody had visited yet: 100–380 ms before, 4–8 ms after
- Mobile Lighthouse performance across the main pages: 96 (it was 73–96), as part of the wider performance pass
- Desktop Lighthouse performance: 100 on every page
One more cache bug
The posts API cached each query without its options. A request for posts without their SEO data and one with it could share a cache entry and get the wrong copy. The cache key now covers every option.
Hosting changes the absolute times. It doesn’t change the shape: a visitor gets a finished page, not one built while they wait.


