From 25f5337b277a73aebc268233c3ceaeb566f952f1 Mon Sep 17 00:00:00 2001 From: Rob Sutter Date: Thu, 14 Nov 2024 08:03:02 +0000 Subject: [PATCH] Add `default` to export for Service Binding example. This is required to make the code sample work. Partially addresses issue #17421. Signed-off-by: Rob Sutter --- .../workers/runtime-apis/bindings/service-bindings/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/workers/runtime-apis/bindings/service-bindings/index.mdx b/src/content/docs/workers/runtime-apis/bindings/service-bindings/index.mdx index a6e716aab24d4f6..d74534827ce7a18 100644 --- a/src/content/docs/workers/runtime-apis/bindings/service-bindings/index.mdx +++ b/src/content/docs/workers/runtime-apis/bindings/service-bindings/index.mdx @@ -60,7 +60,7 @@ main = "./src/workerB.js" ```js import { WorkerEntrypoint } from "cloudflare:workers"; -export class WorkerB extends WorkerEntrypoint { +export default class WorkerB extends WorkerEntrypoint { // Currently, entrypoints without a named handler are not supported async fetch() { return new Response(null, {status: 404}); }