docs(server-renderer): fix typo in renderToWebStream
error, and remove Cloudflare Worker reference (#4249) [ci skip]
This commit is contained in:
parent
d045055b47
commit
17cc4e15a7
@ -88,7 +88,7 @@ function renderToWebStream(
|
||||
**Usage**
|
||||
|
||||
```js
|
||||
// e.g. inside a Cloudflare Worker
|
||||
// e.g. inside an environment with ReadableStream support
|
||||
return new Response(renderToWebStream(app))
|
||||
```
|
||||
|
||||
|
@ -129,7 +129,7 @@ export function renderToWebStream(
|
||||
): ReadableStream {
|
||||
if (!Ctor && !hasGlobalWebStream) {
|
||||
throw new Error(
|
||||
`ReadableStream constructor is not avaialbe in the global scope and ` +
|
||||
`ReadableStream constructor is not available in the global scope and ` +
|
||||
`must be explicitly passed in as the 3rd argument:\n\n` +
|
||||
` import { ReadableStream } from 'stream/web'\n` +
|
||||
` const stream = renderToWebStream(app, {}, ReadableStream)`
|
||||
|
Loading…
x
Reference in New Issue
Block a user