unjs / nitro

Next Generation Server Toolkit. Create web servers with everything you need and deploy them wherever you prefer.
https://nitro.unjs.io
MIT License
5.42k stars 469 forks source link

Support aws lambda streaming #2300

Open thdxr opened 3 months ago

thdxr commented 3 months ago

Describe the feature

currently the aws-lambda preset does not support streaming. will submit a PR that adds a new preset called aws-lambda-streaming for people deploying lambda functions that are capable of streaming.

I'm going to check to see if there is a way of dynamically figuring out at runtime if the function is in streaming mode - if there is we can keep the single preset and have it work under both conditions

if there isn't we will have to have multiple presets

Additional information

lmiller1990 commented 4 days ago

I see there is an experimental support added in #2412. I gave this a try but always get

Nitro entry is missing! Is "aws-lambda-streaming" preset correct?

Do we need to do anything else for the experimental preset to work? I am on the latest version of Nitro.