sst / ion

SST v3
https://sst.dev
MIT License
1.58k stars 201 forks source link

Docs: Live Lambda doesnt support event streaming #1014

Open dested opened 1 week ago

dested commented 1 week ago

This took a while to track down but the live lambda handler doesn't support streaming. To be honest, I don't know how this could work given the realtime writing, but it should at least be documented somewhere. If you agree, I'll find a spot and submit a PR!

thdxr commented 1 week ago

yeah there actually is a way to make it work because we made the underlying bridge stream based but this probably isn't super high priority at the moment

you're right we should document it

jayair commented 3 days ago

Yeah I'll add it

iokhotnikov commented 15 hours ago

This is the example workaround:

import { streamHandle, handle } from 'hono/aws-lambda';

import app from './app';

export const handler = process.env.SST_LIVE ? handle(app) : streamHandle(app);