-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwrangler.toml
50 lines (41 loc) · 1.27 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#:schema node_modules/wrangler/config-schema.json
name = "cloudflare-agentic-ai-browser"
main = "src/index.ts"
compatibility_date = "2024-06-14"
compatibility_flags = [ "nodejs_compat"]
browser = { binding = "MYBROWSER" }
# Bind an R2 Bucket
[[r2_buckets]]
binding = "BUCKET"
bucket_name = "screenshots"
preview_bucket_name = "screenshots-test"
# Binding to a Durable Object
[[durable_objects.bindings]]
name = "BROWSER"
class_name = "Browser"
[[migrations]]
tag = "v1"
new_classes = ["Browser"]
[vars]
ACCOUNT_ID="fa3e82d8258ac121c26085c2a5952780" # replace with yours
SERVICE_NAME = "cloudflare-agentic-ai-browser"
# Baselime integration
logpush = true
tail_consumers = [
{ service = "cloudflare-agentic-ai-browser-tail", environment = "undefined" }
]
[[d1_databases]]
binding = "DB"
database_name = "ai-agent-jobs"
database_id = "d7990af5-2803-4c69-8697-ffc0f8052ddd"
# The rate limiting API is in open beta.
[[unsafe.bindings]]
name = "RATE_LIMITER"
type = "ratelimit"
# An identifier you define, that is unique to your Cloudflare account.
# Must be an integer.
namespace_id = "1001"
# Limit: the number of tokens allowed within a given period in a single
# Cloudflare location
# Period: the duration of the period, in seconds. Must be either 10 or 60
simple = { limit = 2, period = 10 }