Skip to content

Commit

Permalink
Re-enable streaming on Cloudflare Pages (#5914)
Browse files Browse the repository at this point in the history
* Support streaming on Cloudflare Pages

* Create tidy-ties-repeat.md

Co-authored-by: Nate Moore <[email protected]>
  • Loading branch information
AngusMorton and natemoo-re authored Jan 26, 2023
1 parent 98d35de commit 088f519
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/tidy-ties-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@astrojs/cloudflare": minor
---

Re-enable streaming in Cloudflare Pages.
2 changes: 1 addition & 1 deletion packages/integrations/cloudflare/src/server.advanced.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/cloudflare/src/server.directory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 088f519

Please sign in to comment.