Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 691 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 691 Bytes

cloudflare-workers example

This example demonstrates using @benzene/http with Cloudflare Workers.

Demo on Cloudflare Workers

How to use

Download the example:

curl https://codeload.github.com/hoangvvo/benzene/tar.gz/main | tar -xz --strip=2 benzene-main/examples/cloudflare-workers
cd cloudflare-workers

Install and authenticate Wrangler.

Set account_id (wrangler whoami) to wrangler.toml.

Install it and run:

npm install
wrangler dev

To publish the site:

wrangler publish