Re-enable streaming on Cloudflare Pages (#5914)

* Support streaming on Cloudflare Pages

* Create tidy-ties-repeat.md

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
This commit is contained in:
Angus 2023-01-27 00:44:09 +11:00 committed by GitHub
parent 98d35de877
commit 088f5194c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
"@astrojs/cloudflare": minor
---
Re-enable streaming in Cloudflare Pages.

View file

@ -10,7 +10,7 @@ type Env = {
};
export function createExports(manifest: SSRManifest) {
const app = new App(manifest, false);
const app = new App(manifest);
const fetch = async (request: Request, env: Env, context: any) => {
process.env = env as any;

View file

@ -5,7 +5,7 @@ import { getProcessEnvProxy } from './util.js';
process.env = getProcessEnvProxy();
export function createExports(manifest: SSRManifest) {
const app = new App(manifest, false);
const app = new App(manifest);
const onRequest = async ({
request,