8000 Vercel Serverless preset doesn't stream responses because `supportsResponseStreaming: true` is missing from vercel config · Issue #1505 · nitrojs/nitro · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Vercel Serverless preset doesn't stream responses because supportsResponseStreaming: true is missing from vercel config #1505
Closed
@nksaraf

Description

@nksaraf

Environment

Node: v18.15.0
Nitropack: 2.5.2

Reproduction

Deploy an app with streaming to "vercel" preset

Describe the bug

The handler is responding with a NodeJS stream and works on NodeJS normal. Typically lambda has not supported streaming so Vercel's serverless offering didn't either, but recently they added support for it but its behind a flag called supportsResponseStreaming that needs to be applied to your serverless function's vc_config.json.

I think we should make this the default so people don't get bit by it not realizing that they need to enable this. People could potentially be given an option to disable it.

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0