File tree Expand file tree Collapse file tree 1 file changed +31
-19
lines changed Expand file tree Collapse file tree 1 file changed +31
-19
lines changed Original file line number Diff line number Diff line change 1- # :schema ./node_modules/wrangler/config-schema.json
2- name = " cloudflare-docs"
3- account_id = " b54f07a6c269ecca2fa60f1ae4920c99"
4- compatibility_date = " 2024-10-14"
5- compatibility_flags = [" nodejs_compat" ]
6- main = " ./worker/index.ts"
7-
8- workers_dev = true
9- route = { pattern = " developers.cloudflare.com/*" , zone_name = " developers.cloudflare.com" }
10-
11- rules = [
12- { type = " Text" , globs = [" **/__redirects" ], fallthrough = true },
13- ]
14-
15- [assets ]
16- directory = " ./dist"
17- binding = " ASSETS"
18- not_found_handling = " 404-page"
19- run_worker_first = true
1+ {
2+ "name": "my-worker",
3+ "main": "src/index.js",
4+ "compatibility_date": "2022-07-12",
5+ "workers_dev": false,
6+ "route": {
7+ "pattern": "example.org/*",
8+ "zone_name": "example.org"
9+ },
10+ "kv_namespaces": [
11+ {
12+ "binding": "<MY_NAMESPACE>",
13+ "id": "<KV_ID>"
14+ }
15+ ],
16+ "env": {
17+ "staging": {
18+ "name": "my-worker-staging",
19+ "route": {
20+ "pattern": "staging.example.org/*",
21+ "zone_name": "example.org"
22+ },
23+ "kv_namespaces": [
24+ {
25+ "binding": "<MY_NAMESPACE>",
26+ "id": "<STAGING_KV_ID>"
27+ }
28+ ]
29+ }
30+ }
31+ }
You can’t perform that action at this time.
0 commit comments