Skip to content

Commit b30bbee

Browse files
authored
Add default to export for Service Binding example. This is required to make the code sample work. (#18163)
Partially addresses issue #17421. Signed-off-by: Rob Sutter <[email protected]>
1 parent 6fe6ed4 commit b30bbee

File tree

1 file changed

+1
-1
lines changed
  • src/content/docs/workers/runtime-apis/bindings/service-bindings

1 file changed

+1
-1
lines changed

src/content/docs/workers/runtime-apis/bindings/service-bindings/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ main = "./src/workerB.js"
6060
```js
6161
import { WorkerEntrypoint } from "cloudflare:workers";
6262

63-
export class WorkerB extends WorkerEntrypoint {
63+
export default class WorkerB extends WorkerEntrypoint {
6464
// Currently, entrypoints without a named handler are not supported
6565
async fetch() { return new Response(null, {status: 404}); }
6666

0 commit comments

Comments
 (0)