#โœ… - Next.JS Web Streams API In Amplify Gen2

5 messages ยท Page 1 of 1 (latest)

severe rampart
#

Hi all ๐Ÿ‘‹
I'm using Next.JS 14 and looking to host it on Amplify. I have made a POC to make sure all features I'm looking to use will work in Amplify. I'm having trouble using the streaming API with Amplify.

I have setup Amplify to work with aws linux 2023 and node 20.10.0 but streaming just won't work. I know it isn't a code problem as i'm hosting the same application in vercel and streaming does work there.

I'm wondering if I need to configure amplify in anyway to support the feature or does it simply not work?

Related links
https://nodejs.org/api/webstreams.html
https://nextjs.org/docs/app/building-your-application/routing/loading-ui-and-streaming

Built on top of Suspense, Loading UI allows you to create a fallback for specific route segments, and automatically stream content as it becomes ready.

twilit flower
severe rampart
#

Thanks for sharing, I was looking for one but couldn't find any info

low reef
#

Hi everyone ๐Ÿ‘‹ , Amplify Hosting currently does not support Next.js streaming. We are tracking this as a feature request on GitHub: https://github.com/aws-amplify/amplify-hosting/issues/3843. We will share any updates around it on the same thread so feel free to monitor or subscribe to it.

GitHub

AWS Amplify Hosting provides a Git-based workflow for deploying and hosting fullstack serverless web applications. - Issues ยท aws-amplify/amplify-hosting

stable joltBOT
#

โœ… - Next.JS Web Streams API In Amplify Gen2