wrangler.toml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. name = "image-processing"
  2. main = "src/worker.js"
  3. compatibility_date = "2023-08-21"
  4. # Variable bindings. These are arbitrary, plaintext strings (similar to environment variables)
  5. # Note: Use secrets to store sensitive data.
  6. # Docs: https://developers.cloudflare.com/workers/platform/environment-variables
  7. # [vars]
  8. # MY_VARIABLE = "production_value"
  9. # Bind a KV Namespace. Use KV as persistent storage for small key-value pairs.
  10. # Docs: https://developers.cloudflare.com/workers/runtime-apis/kv
  11. # [[kv_namespaces]]
  12. # binding = "MY_KV_NAMESPACE"
  13. # id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  14. # Bind an R2 Bucket. Use R2 to store arbitrarily large blobs of data, such as files.
  15. # Docs: https://developers.cloudflare.com/r2/api/workers/workers-api-usage/
  16. # [[r2_buckets]]
  17. # binding = "MY_BUCKET"
  18. # bucket_name = "my-bucket"
  19. # Bind a Queue producer. Use this binding to schedule an arbitrary task that may be processed later by a Queue consumer.
  20. # Docs: https://developers.cloudflare.com/queues/get-started
  21. # [[queues.producers]]
  22. # binding = "MY_QUEUE"
  23. # queue = "my-queue"
  24. # Bind a Queue consumer. Queue Consumers can retrieve tasks scheduled by Producers to act on them.
  25. # Docs: https://developers.cloudflare.com/queues/get-started
  26. # [[queues.consumers]]
  27. # queue = "my-queue"
  28. # Bind another Worker service. Use this binding to call another Worker without network overhead.
  29. # Docs: https://developers.cloudflare.com/workers/platform/services
  30. # [[services]]
  31. # binding = "MY_SERVICE"
  32. # service = "/api/*"
  33. # Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model.
  34. # Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.
  35. # Docs: https://developers.cloudflare.com/workers/runtime-apis/durable-objects
  36. # [[durable_objects.bindings]]
  37. # name = "MY_DURABLE_OBJECT"
  38. # class_name = "MyDurableObject"
  39. # Durable Object migrations.
  40. # Docs: https://developers.cloudflare.com/workers/learning/using-durable-objects#configure-durable-object-classes-with-migrations
  41. # [[migrations]]
  42. # tag = "v1"
  43. # new_classes = ["MyDurableObject"]