opennextjs / opennextjs-aws

Open-source Next.js adapter for AWS
https://opennext.js.org
MIT License
4.14k stars 126 forks source link

fix lambda streaming hanging after return #487

Closed conico974 closed 2 months ago

conico974 commented 3 months ago

It looks like aws has made an update again to how the runtime works when using streaming. Now even after end() has been called on the stream and the handler returned, the lambda keeps running in the background doing nothing until it timeout (and you'll be billed for the full duration)

This should fix it.

changeset-bot[bot] commented 3 months ago

🦋 Changeset detected

Latest commit: c18999ccdbda5552fbeae43c3c59ab46cb840f58

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages | Name | Type | | ---------------- | ----- | | open-next | Patch | | app-pages-router | Patch | | app-router | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
open-next ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 20, 2024 3:16pm