vercel / next-react-server-components

Demo repository for Next.js + React Server Components
https://next-rsc-hn.vercel.app
MIT License
979 stars 158 forks source link

The SSR + Api delay example is broken #4

Closed ReangeloJ closed 1 year ago

ReangeloJ commented 2 years ago

Hey The ssr + api delay example is broken. I get an error 500 on: https://next-news-rsc.vercel.sh/ssr

Thanks in advance! :)

image

benbender commented 2 years ago

Seems to be fixed (at least for me).

ReangeloJ commented 2 years ago

Seems to be fixed (at least for me).

Okay, that is strange yeah, mine still gives the error. All the others work except for that one

frencojobs commented 2 years ago

Same problem for me as well.

Screen Shot 2021-10-28 at 7 38 58 PM
SoraKumo001 commented 2 years ago

Vercel's specification seems to cause an error if the SSR process exceeds 1.5 seconds. As a workaround, I created a hybrid SSR-Streaming process.

https://next-streaming.vercel.app/ https://github.com/SoraKumo001/next-streaming

It performs static SSR within the limit of 1.4 seconds, and switches to SSR-Streaming when it times out.

leerob commented 1 year ago

This should be resolved, but please let me know if you see it not working 😄