Skip to content

Commit

Permalink
fix: syntax error in the worker banner (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb authored Jan 30, 2025
1 parent 675d58d commit 3ed6cd1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/spicy-turkeys-share.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@opennextjs/cloudflare": patch
---

fix: syntax error
2 changes: 1 addition & 1 deletion packages/cloudflare/src/cli/build/bundle-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const CustomRequest = class extends globalThis.Request {
// https://github.com/cloudflare/workerd/issues/2746
// https://github.com/cloudflare/workerd/issues/3245
Object.defineProperty(init, "body", {
value: init.body instanceof __cf_stream.Readable ? ReadableStream.from(init.body) : init.body;
value: init.body instanceof __cf_stream.Readable ? ReadableStream.from(init.body) : init.body
});
}
super(input, init);
Expand Down

0 comments on commit 3ed6cd1

Please sign in to comment.