Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-enable streaming on Cloudflare Pages #5914

Merged
merged 5 commits into from
Jan 26, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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