-
Notifications
You must be signed in to change notification settings - Fork 1
/
wrangler.toml
40 lines (33 loc) · 1.19 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
#:schema node_modules/wrangler/config-schema.json
name = "malacca"
main = "src/index.ts"
compatibility_date = "2024-09-02"
compatibility_flags = ["nodejs_compat"]
minify = true
logpush = false
# Bind an Analytics Engine dataset. Use Analytics Engine to write analytics within your Pages Function.
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#analytics-engine-datasets
[[analytics_engine_datasets]]
binding = "MALACCA"
# Bind a KV Namespace. Use KV as persistent storage for small key-value pairs.
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#kv-namespaces
[[kv_namespaces]]
binding = "MALACCA_USER"
id = "172f036565724816a51f04789deeecd0"
[[kv_namespaces]]
binding = "MALACCA_CACHE"
id = "8ef9a507dca94b21b4f64e40952c0dfd"
[observability]
enabled = true
[[unsafe.bindings]]
name = "MY_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 = 100, period = 60 }
[ai]
binding = "AI"