Skip to content

Cloudflare worker app's export #12

@ruanyf

Description

@ruanyf

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions