Skip to content
harry-suryapambagya

Simple JS Deployment to Cloudflare

Build and deploy a JavaScript app to Cloudflare Workers, with commands for installing dependencies, local development, production builds, and static generation.

updated 1 min read

Build Setup

# install dependencies
$ npm run install
# run on local dev. default on localhost:3000
$ npm run dev
# build and run on prod
$ npm run build
$ npm run start
# generate static files
$ npm run generate
# publish to Cloudflare workers
$ npm run publish

Next up..