Skip to content

Latest commit

 

History

History

cloudflare-workers

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

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