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}); }