Skip to content

Files

Latest commit

88fe3c9 · Jun 17, 2024

History

History
18 lines (10 loc) · 1.15 KB

README.md

File metadata and controls

18 lines (10 loc) · 1.15 KB

worker-template

This is a template for building a Cloudflare Worker.

It uses Hono as the underlying framework that handles routing, body parsing, and much more. TypeScript is used for type safety, along with TypeScript ESLint. Wrangler is Cloudflare's official CLI that handles deployment and local development. GitHub Actions lint the codebase and deploy to Cloudflare on push. Prettier is used for code formatting. The package manager is pnpm.

Getting started

  1. Use this template on GitHub.

    Use this template

  2. Create an API token on Cloudflare with the default Edit Workers template and set it as a repository secret named CLOUDFLARE_API_TOKEN.

  3. Rerun the failed deploy run.

License

Creative Commons Zero v1.0 Universal (Public Domain)