Config Files · 1 file
Sample wrangler.toml File
wrangler.toml configures Cloudflare Workers and their bindings. Our sample is realistic and valid for its tool, with fake hosts and secrets.
wrangler.toml · 561 B
wrangler.toml
A Cloudflare Workers config with compatibility settings, vars, KV, R2 and D1 bindings, routes and a cron trigger. All hosts, keys and secrets are fake.
CC0 · free for any use · Verified by an independent tool · Report a problem
# Sample wrangler.toml — samplefiles.com
name = "sample-worker"
main = "src/index.ts"
compatibility_date = "2026-01-15"
compatibility_flags = ["nodejs_compat"]
routes = [{ pattern = "api.example.com/*", zone_name = "example.com" }]
[vars]
ENVIRONMENT = "production"
[[kv_namespaces]]
binding = "CACHE"
id = "00000000000000000000000000000000"
[[r2_buckets]]
binding = "FILES"
bucket_name = "sample-files"
[[d1_databases]]
binding = "DB"
database_name = "sample-db"
database_id = "00000000-0000-0000-0000-000000000000"
[triggers]File details
Download from the command line
curl -L -o wrangler.toml https://files.samplefiles.com/config/wrangler-toml/wrangler.tomlwget https://files.samplefiles.com/config/wrangler-toml/wrangler.tomlhttps://files.samplefiles.com/config/wrangler-toml/wrangler.tomlprintf '%s %s\n' 6d49e04c38cfb51f90558318d8ab2ab65ce2920fa9e7eed82cba9935998f4590 wrangler.toml | shasum -a 256 -cOr check the download in your browser with the checksum calculator.