Deploy Static Website To CloudFlare Link to heading
Wrangler is the CloudFlare CLI, we can use it to serve a static website locally, and deploy it to CF.
pnpm dlx wrangler login
pnpm dlx pages project create
pnpm dlx wrangler pages deploy ./mywebsite/public
# deploy assets again
pnpm dlx wrangler pages publish ./mywebsite/public --project-name=myproject
# serve static assets locally
pnpm dlx wrangler pages dev
# list project
pnpm dlx wrangler pages project list