/cloudflare-workers-typescript

Cloudflare Workers TypeScript setup with esbuild

Primary LanguageTypeScript

Cloudflare Workers TypeScript

banner

Install

Install the dependencies.

npm install

Setup

Add your account_id to wrangler.toml.

Note: you can find it in the right side of the workers dashboard overview.

Development

Run in development mode locally.

npm run dev

Publish

npm run publish

Note: This automatically builds your code, so you don't need to worry about building manually before publishing.