Skip to content

Cloudflare Pages/Worker Example #368

@verydanny

Description

@verydanny

The documentation briefly mentions Cloudflare, but Wrangler was a bit more annoying to set up than I expected. Should I add a documentation section or can I just somehow link to an example?

Regardless, I made an example.

Issues:

  • @elysiajs/html is incompatible with Cloudflare, using the underlying @kitajs/html seems to work, then again, no streaming sadly.
  • The bundle to deploy to Cloudflare seems to be quite big (170kb), vs Hono (27kb). Maybe someone can put more time in bundling Elysia for Cloudflare.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions