This example demonstrates using @benzene/http
with Cloudflare Workers.
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