-
Notifications
You must be signed in to change notification settings - Fork 0
/
wrangler.toml
35 lines (27 loc) · 1.1 KB
/
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
name = "wheniswan-fetcher"
main = "src/worker.ts"
compatibility_date = "2023-07-10"
account_id = "f55b85c8a963663b11036975203c63c0"
[observability]
enabled = true
[triggers]
crons = [
"0 0 */4 * *" # Re-subscribe to youtube pubsubhubbub thing. Max lease length is 5 days, so run this every 4 days
]
# Bind another Worker service. Use this binding to call another Worker without network overhead.
# Docs: https://developers.cloudflare.com/workers/platform/services
# [[services]]
# binding = "MY_SERVICE"
# service = "/api/*"
# Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model.
# Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.
# Docs: https://developers.cloudflare.com/workers/runtime-apis/durable-objects
[[durable_objects.bindings]]
name = "WHENISWAN_FETCHER"
class_name = "FetcherObject"
[[migrations]]
tag = "v1" # Should be unique for each entry
new_classes = ["FetcherObject"]
[[analytics_engine_datasets]]
binding = "DURABLE_STORAGE_ANALYTICS"
dataset = "durable_storage_analytics"