Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloudflare worker app's export #12

Open
ruanyf opened this issue Jun 19, 2024 · 1 comment
Open

Cloudflare worker app's export #12

ruanyf opened this issue Jun 19, 2024 · 1 comment

Comments

@ruanyf
Copy link

ruanyf commented Jun 19, 2024

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]

@yusukebe
Copy link
Owner

Hi @ruanyf

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants