Skip to content

Commit

Permalink
Add default to export for Service Binding example. This is required…
Browse files Browse the repository at this point in the history
… to make the code sample work.

Partially addresses issue #17421.

Signed-off-by: Rob Sutter <[email protected]>
  • Loading branch information
rts-rob committed Nov 14, 2024
1 parent daa0d21 commit 25f5337
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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}); }

Expand Down

0 comments on commit 25f5337

Please sign in to comment.