Skip to content

Commit 3ed6cd1

Browse files
authoredJan 30, 2025··
fix: syntax error in the worker banner (#301)
1 parent 675d58d commit 3ed6cd1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

‎.changeset/spicy-turkeys-share.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@opennextjs/cloudflare": patch
3+
---
4+
5+
fix: syntax error

‎packages/cloudflare/src/cli/build/bundle-server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ const CustomRequest = class extends globalThis.Request {
130130
// https://github.com/cloudflare/workerd/issues/2746
131131
// https://github.com/cloudflare/workerd/issues/3245
132132
Object.defineProperty(init, "body", {
133-
value: init.body instanceof __cf_stream.Readable ? ReadableStream.from(init.body) : init.body;
133+
value: init.body instanceof __cf_stream.Readable ? ReadableStream.from(init.body) : init.body
134134
});
135135
}
136136
super(input, init);

0 commit comments

Comments
 (0)
Please sign in to comment.