Skip to content

Commit

Permalink
Add script_name for Channel DO binding in CLI
Browse files Browse the repository at this point in the history
same fix as f5874c0 but applied to the superflare CLI new command

wrangler’s getPlatformProxy requires the script_name in order to be able to proxy any Durable Object bindings: https://developers.cloudflare.com/workers/wrangler/api/#supported-bindings
  • Loading branch information
acusti committed Oct 21, 2024
1 parent 0fb6b19 commit ebdbc99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/superflare/cli/new.ts
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ async function setUpDurableObject(pathName: string) {
{
name: "CHANNELS",
class_name: "Channel",
script_name: "worker",
},
],
},
Expand Down

0 comments on commit ebdbc99

Please sign in to comment.