Skip to content

Deploy to Cloudflare

Goal

Deploy a Cloudflare Worker/Container from cloudflare/ using Wrangler.

Prerequisites

  • node + npm
  • wrangler installed
  • Cloudflare account with Containers (Beta) access (if using containers)

Steps

1) Install dependencies

cd cloudflare
npm install

2) Authenticate

wrangler login

3) Deploy

# Normal container
cd container/normal
wrangler deploy

# Cron container
cd ../cron
wrangler deploy

Validation

  • Confirm the Worker/Container appears in the Cloudflare dashboard.
  • Hit the worker route (if configured) and verify a 2xx response.

Next steps


Next: Getting Started · Reference · Changelog · Support