Skip to content

Commit d046bf1

Browse files
committed
1 parent e9bb586 commit d046bf1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/start/src/server/handler.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@ export function createBaseHandler(
114114

115115
if (mode === "async") return await stream;
116116

117-
delete (stream as any).then;
118-
119117
// using TransformStream in dev can cause solid-start-dev-server to crash
120118
// when stream is cancelled
121119
if (globalThis.USING_SOLID_START_DEV_SERVER) return stream;
122120

121+
delete (stream as any).then;
122+
123123
// returning stream directly breaks cloudflare workers
124124
const { writable, readable } = new TransformStream();
125125
stream.pipeTo(writable);

0 commit comments

Comments
 (0)