forked from zwave-js/firmware-updates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wrangler.toml
47 lines (35 loc) · 965 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
name = "zwave-js-firmware-updates"
usage_model = "bundled"
# workers_dev = true
compatibility_date = "2022-08-28"
# node_compat = true
main = "build/worker.js"
kv_namespaces = [
# { binding = "R2_CACHE", id = "a14d0c5671564efda1e3db0e2f98da60" },
{ binding = "API_KEYS", id = "7edd033eda014a5ebdd02aed07f31063" }
]
[build]
command = "yarn build"
watch_dir = "src"
[[migrations]]
tag = "v1" # Should be unique for each entry
new_classes = ["RateLimiterDurableObject"]
[durable_objects]
bindings = [
{name = "RateLimiter", class_name = "RateLimiterDurableObject"},
]
[[r2_buckets]]
binding = "CONFIG_FILES"
bucket_name = "zwave-js-firmware-updates--config-files"
# ------------------------------------------------------------------------------
# Required for Miniflare:
[build.upload]
format = "modules"
[miniflare]
port = 8787
watch = true
cache_persist = true
env_path = ".env"
# kv_persist = true
durable_objects_persist = true
r2_persist = true