content: #: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 }