49
loading...
This website collects cookies to deliver better user experience
wrangler.toml
file to make sure everything's in order. Your file should look something like this:type = "webpack"
name = "redirect"
account_id = "YOUR_ACCOUNT_ID"
workers_dev = true
route = ""
zone_id = ""
kv_namespaces = [
{ binding = "SHORTEN", id = "7654a938359f4f0e86b11afc7133166b", preview_id = "58f1a4c227534317817846d697f9ade7" }
]
[site]
bucket = "./public"
entry-point = "workers-site"
<name>.<yoursubdomain>.workers.dev
, where name
is the project name you defined in the wrangler.toml
name key, and yoursubdomain
is your Workers subdomain, which you can see on your dashboard. Note that in production, your Worker will use the KV namespace available at id
instead of preview_id
automatically.wrangler
:$ wrangler publish