Skip to content

Instantly share code, notes, and snippets.

@thechainercygnus
Created April 28, 2022 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thechainercygnus/44f41176ee66188e11b6132c15b424ee to your computer and use it in GitHub Desktop.
Save thechainercygnus/44f41176ee66188e11b6132c15b424ee to your computer and use it in GitHub Desktop.
A basic wrangler.toml for webpack workers
name = "worker_name" # The name of the worker
type = "webpack" # This tells Cloudflare Workers what stack we need, currently using webpack. Will move to javascript custom build
compatibility_date = "2022-01-01"
workers_dev = true # Set to false for production deployments
route = "https://{{ domain }}/*" # Populate with your domain name
account_id = "" # Your CF Account ID
zone_id = "" # The CF Zone ID for the domain
[site]
bucket = "./public" # The files to be served
entry-point = "workers-site"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment