diff --git a/packages/wrangler/src/api/form_data.ts b/packages/wrangler/src/api/form_data.ts index e3d015c42ac5..df7b921d93b4 100644 --- a/packages/wrangler/src/api/form_data.ts +++ b/packages/wrangler/src/api/form_data.ts @@ -47,7 +47,7 @@ interface WorkerMetadata { | { type: "service"; name: string; - script_name: string; + service: string; environment: string; } )[]; @@ -94,11 +94,11 @@ export function toFormData(worker: CfWorkerInit): FormData { metadataBindings.push({ name: key, type: "plain_text", text: value }); }); - bindings.services?.forEach(({ name, script_name, environment }) => { + bindings.services?.forEach(({ name, service, environment }) => { metadataBindings.push({ name, type: "service", - script_name, + service, environment, }); }); diff --git a/packages/wrangler/src/api/worker.ts b/packages/wrangler/src/api/worker.ts index 8b42ad4bc6c2..382cad8487dd 100644 --- a/packages/wrangler/src/api/worker.ts +++ b/packages/wrangler/src/api/worker.ts @@ -91,7 +91,7 @@ interface CfDurableObject { */ interface CfService { name: string; - script_name: string; + service: string; environment: string; } diff --git a/packages/wrangler/src/config.ts b/packages/wrangler/src/config.ts index 424e2e493b15..6992fba7c74a 100644 --- a/packages/wrangler/src/config.ts +++ b/packages/wrangler/src/config.ts @@ -43,7 +43,7 @@ type DurableObject = { type Service = { name: string; - script_name: string; + service: string; environment: string; };