Skip to content

SSR via Cloudflare Workers & renderToWebStream (3.2 ) #4243

Closed
@Cherry

Description

@Cherry

Version

3.2.0-beta.7

Reproduction link

https://github.com/Cherry/workers-vue-ssr-example

The src/index.mjs file contains a really simple Hello World Vue App, attempting to be rendered server-side. It has 3 different solutions in the code, in this order:

  1. Native
  2. via TransformStream
  3. Buffering stream in memory

Each is commented out, with the only one actually working being 3, buffering in memory.

Steps to reproduce

See the attached reproduction repo for more information.

What is expected?

When using SSR and renderToWebStream, Options 1 and/or 2 should work without issue. The docs in @vue/server-renderer seem to suggest this is possible, but all attempts have resulted in errors.

What is actually happening?

Options 1 and 2 throw errors, either relating to ReadableStream not being a constructor, or there being no response. More information can be found in the README of the attached reproduction repo.


If I can provide any more information, please let me know and I'll be happy to.

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