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:
parent
98d35de877
commit
088f5194c5
3 changed files with 7 additions and 2 deletions
5
.changeset/tidy-ties-repeat.md
Normal file
5
.changeset/tidy-ties-repeat.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@astrojs/cloudflare": minor
|
||||
---
|
||||
|
||||
Re-enable streaming in Cloudflare Pages.
|
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue