open-next icon indicating copy to clipboard operation
open-next copied to clipboard

Is PPR supported?

Open wottpal opened this issue 1 year ago • 3 comments

PPR is highlighted in the OpenNext Cloudflare Docs (as not supported). OpenNext AWS Docs don't specifically mention it (it probably should), so I was wondering whether it's supported (in it's current experimental state) and if the goal is 100% feature parity in general.

wottpal avatar Sep 30 '24 22:09 wottpal

It is not supported at the moment but will be in the future (probably when it will be stable, or at least more stable)

There is 2 kind of PPR, the one in next standalone and the one in vercel.

PPR as it is in next standalone would not work very well in the current setup and could even be slower than a normal SSR page. If rendering the prerendered part is faster than fetching the cache on S3 it's not worth it.

The one in vercel is different and requires a bit more work, but most of the necessary pieces are already there

conico974 avatar Oct 01 '24 09:10 conico974

According to the Vercel devs, enabling ppr without the complete infrastructure still has some benefits... so turn it on and see if it's better or worse.

khuezy avatar Oct 01 '24 16:10 khuezy

It doesn't work right now, we need to change a few things for it to work even with standalone

conico974 avatar Oct 01 '24 16:10 conico974

There is now basic support for it in #542

conico974 avatar Oct 16 '24 12:10 conico974