From ebdbc9914c949c5e6b83db34a13ad191fefd6488 Mon Sep 17 00:00:00 2001 From: Andrew Patton Date: Mon, 21 Oct 2024 20:15:48 +0000 Subject: [PATCH] Add script_name for Channel DO binding in CLI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit same fix as f5874c0e7b5873185a2e1f2d03cb59c4bcb573e7 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 --- packages/superflare/cli/new.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/superflare/cli/new.ts b/packages/superflare/cli/new.ts index c9884cd4..03df5b7e 100644 --- a/packages/superflare/cli/new.ts +++ b/packages/superflare/cli/new.ts @@ -526,6 +526,7 @@ async function setUpDurableObject(pathName: string) { { name: "CHANNELS", class_name: "Channel", + script_name: "worker", }, ], },