From 1a73924ca7bc655b674654cb9e28fd85a3a21db3 Mon Sep 17 00:00:00 2001 From: Klaus Breyer Date: Wed, 4 Jan 2023 11:09:33 +0100 Subject: [PATCH] Update index.ts Fix a bug that prevented the example from working out of the box --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 00527ad..bd4ead1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -22,7 +22,7 @@ export interface Env { // MY_BUCKET: R2Bucket } -export const worker = { +export default { async fetch( request: Request, env: Env,