-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwrangler.json
136 lines (132 loc) · 3.07 KB
/
wrangler.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
/**
* For more details on how to configure Wrangler, refer to:
* https://developers.cloudflare.com/workers/wrangler/configuration/
*/
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "chess-worker",
"main": "src/index.ts",
"compatibility_date": "2025-01-09",
"env": {
"staging": {
"name": "chess-worker-staging",
"vars": {
"ENVIRONMENT": "staging",
"CHAIN_ID": "84532"
},
"durable_objects": {
"bindings": [
{
"class_name": "ChessGame",
"name": "CHESS_GAME"
}
]
},
"migrations": [
{
"tag": "v2",
"new_classes": [
"ChessGame"
]
}
],
"d1_databases": [
{
"binding": "D1_GAMES",
"database_name": "staging-d1-games",
"database_id": "e94199e8-b627-4eb0-999b-ec32e301091e"
}
],
"kv_namespaces": [
{
"binding": "KV_CHESS_GAMES_BY_USER",
"id": "efd6819d592b4cd1887b9e543a0116c0"
}
],
"r2_buckets": [
{
"binding": "BUCKET_BASEDCHESS_BOARDS",
"bucket_name": "staging-basedchess-boards"
}
]
},
"production": {
"name": "chess-worker",
"vars": {
"ENVIRONMENT": "production",
"CHAIN_ID": "8453"
},
"durable_objects": {
"bindings": [
{
"class_name": "ChessGame",
"name": "CHESS_GAME"
}
]
},
"migrations": [
{
"tag": "v2",
"new_classes": [
"ChessGame"
]
}
],
"d1_databases": [
{
"binding": "D1_GAMES",
"database_name": "prod-d1-games",
"database_id": "152c8595-978d-4fb6-8558-c792debd885c"
}
],
"kv_namespaces": [
{
"binding": "KV_CHESS_GAMES_BY_USER",
"id": "ebe20f1ab11c48bea8c63c20c017dc09"
}
],
"r2_buckets": [
{
"binding": "BUCKET_BASEDCHESS_BOARDS",
"bucket_name": "basedchess-boards"
}
]
}
},
"observability": {
"enabled": true,
"logs": {
"enabled": true
}
},
/**
* Smart Placement
* Docs: https://developers.cloudflare.com/workers/configuration/smart-placement/#smart-placement
*/
// "placement": { "mode": "smart" },
/**
* Bindings
* Bindings allow your Worker to interact with resources on the Cloudflare Developer Platform, including
* databases, object storage, AI inference, real-time communication and more.
* https://developers.cloudflare.com/workers/runtime-apis/bindings/
*/
/**
* Environment Variables
* https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables
*/
// "vars": { "MY_VARIABLE": "production_value" },
/**
* Note: Use secrets to store sensitive data.
* https://developers.cloudflare.com/workers/configuration/secrets/
*/
/**
* Static Assets
* https://developers.cloudflare.com/workers/static-assets/binding/
*/
// "assets": { "directory": "./public/", "binding": "ASSETS" },
/**
* Service Bindings (communicate between multiple Workers)
* https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings
*/
// "services": [{ "binding": "MY_SERVICE", "service": "my-service" }]
}