Skip to content

[BUG] Streaming does not work for API routes #152

@vicb

Description

@vicb

Describe the bug

See #102 (comment) (reported by @dandoen)

Streaming does not work for API routes (The whole response is sent at once)

Steps to reproduce

Use the code in the linked comment

Expected behavior

Streaming works

@opennextjs/cloudflare version

experimental branch as of Dec 6

Node.js version

22

Wrangler version

Custom - > 3.92

next info output

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.1.0: Thu Oct 10 21:00:32 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6030
  Available memory (MB): 36864
  Available CPU cores: 12
Binaries:
  Node: 22.11.0
  npm: 10.9.0
  Yarn: N/A
  pnpm: 9.14.4
Relevant Packages:
  next: 14.2.11 // An outdated version detected (latest is 15.0.4), upgrade is highly recommended!
  eslint-config-next: 14.2.14
  react: 18.3.1
  react-dom: 18.3.1
  typescript: 5.5.4

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions