next-partial-prerendering icon indicating copy to clipboard operation
next-partial-prerendering copied to clipboard

Using a detail page results in exception

Open mastoj opened this issue 2 years ago • 1 comments
trafficstars

Not sure where you want issues like this, so I add it here and then it can be moved somewhere else.

I started playing with the sample, and to make it more realistic I created a /[id] route and just copied the page.tsx there as well. For some reason I get a This page needs to bail out of prerendering at this point because it used revalidate: 0. React throws this special object to indicate where. It should not be caught by your own try/catch. error when I run on vercel even thought it works perfectly fine locally. The specific code change can be found here: https://github.com/mastoj/next-partial-prerendering/commit/04f04763ea64876b80e87509f526c9033d5fde73, and the deployed app: https://next-partial-prerendering-ten.vercel.app/1

I also don't understand why my timestamps that I added is first rendered statically and then also re-rendered, in my head static content shouldn't change.

mastoj avatar Nov 10 '23 10:11 mastoj

Same issue here

z4nr34l avatar Jan 25 '24 07:01 z4nr34l