-
Notifications
You must be signed in to change notification settings - Fork 0
/
wrangler.toml
51 lines (41 loc) · 1001 Bytes
/
wrangler.toml
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
name = "whiteboard-develop"
type = "javascript"
workers_dev = true
compatibility_date = "2021-11-08"
account_id = "7e155f728b0311833218e72046aaa90a"
[env.production]
name = "whiteboard"
# https://github.com/cloudflare/wrangler/issues/2142
durable_objects.bindings = [
{ name = "manager", class_name = "RoomManager" },
{ name = "rooms", class_name = "Room" }
]
[build]
command = "npm run build"
[build.upload]
format = "modules"
dir = "dist"
main = "./index.mjs"
rules = [{type = "Text", globs = ["**/*.json"]}]
[site]
bucket = "./assets"
entry-point = "./dist"
[triggers]
crons = ["*/10 * * * *"]
[durable_objects]
bindings = [
{ name = "manager", class_name = "RoomManager" },
{ name = "rooms", class_name = "Room" }
]
[[migrations]]
tag = "v1"
new_classes = ["ChatRoom", "RateLimiter"]
[[migrations]]
tag = "v2"
new_classes = ["RoomManager"]
[[migrations]]
tag = "v3"
renamed_classes = [{from = "ChatRoom", to = "Room" }]
[[migrations]]
tag = "v4"
deleted_classes = ["RateLimiter"]