pico icon indicating copy to clipboard operation
pico copied to clipboard

Cloudflare worker app's export

Open ruanyf opened this issue 1 year ago • 1 comments

Cloudflare worker app's export should be written as follow.

export default {
  fetch: router.fetch
}

Otherwise, wrangler deploy will throw error.

The uploaded script has no registered event handlers. [code: 10068]

ruanyf avatar Jun 19 '24 11:06 ruanyf

Hi @ruanyf

That code should work correctly. Maybe it's not a bug.

yusukebe avatar Aug 18 '24 00:08 yusukebe