[READ-ONLY] Mirror of https://github.com/mrgnw/pyfly.
0

Configure Feed

Select the types of activity you want to include in your feed.

pyfly / workers / hello-world-ai / wrangler.toml
5.0 kB 108 lines
1#:schema node_modules/wrangler/config-schema.json 2name = "hello-world-ai" 3main = "src/index.js" 4compatibility_date = "2024-04-23" 5compatibility_flags = ["nodejs_compat"] 6 7# Automatically place your workloads in an optimal location to minimize latency. 8# If you are running back-end logic in a Worker, running it closer to your back-end infrastructure 9# rather than the end user may result in better performance. 10# Docs: https://developers.cloudflare.com/workers/configuration/smart-placement/#smart-placement 11# [placement] 12# mode = "smart" 13 14# Variable bindings. These are arbitrary, plaintext strings (similar to environment variables) 15# Docs: 16# - https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables 17# Note: Use secrets to store sensitive data. 18# - https://developers.cloudflare.com/workers/configuration/secrets/ 19# [vars] 20# MY_VARIABLE = "production_value" 21 22# Bind the Workers AI model catalog. Run machine learning models, powered by serverless GPUs, on Cloudflare’s global network 23# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#workers-ai 24[ai] 25binding = "AI" 26 27# Bind an Analytics Engine dataset. Use Analytics Engine to write analytics within your Pages Function. 28# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#analytics-engine-datasets 29# [[analytics_engine_datasets]] 30# binding = "MY_DATASET" 31 32# Bind a headless browser instance running on Cloudflare's global network. 33# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#browser-rendering 34# [browser] 35# binding = "MY_BROWSER" 36 37# Bind a D1 database. D1 is Cloudflare’s native serverless SQL database. 38# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#d1-databases 39# [[d1_databases]] 40# binding = "MY_DB" 41# database_name = "my-database" 42# database_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" 43 44# Bind a dispatch namespace. Use Workers for Platforms to deploy serverless functions programmatically on behalf of your customers. 45# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#dispatch-namespace-bindings-workers-for-platforms 46# [[dispatch_namespaces]] 47# binding = "MY_DISPATCHER" 48# namespace = "my-namespace" 49 50# Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model. 51# Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps. 52# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects 53# [[durable_objects.bindings]] 54# name = "MY_DURABLE_OBJECT" 55# class_name = "MyDurableObject" 56 57# Durable Object migrations. 58# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#migrations 59# [[migrations]] 60# tag = "v1" 61# new_classes = ["MyDurableObject"] 62 63# Bind a Hyperdrive configuration. Use to accelerate access to your existing databases from Cloudflare Workers. 64# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#hyperdrive 65# [[hyperdrive]] 66# binding = "MY_HYPERDRIVE" 67# id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" 68 69# Bind a KV Namespace. Use KV as persistent storage for small key-value pairs. 70# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#kv-namespaces 71# [[kv_namespaces]] 72# binding = "MY_KV_NAMESPACE" 73# id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" 74 75# Bind an mTLS certificate. Use to present a client certificate when communicating with another service. 76# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#mtls-certificates 77# [[mtls_certificates]] 78# binding = "MY_CERTIFICATE" 79# certificate_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" 80 81# Bind a Queue producer. Use this binding to schedule an arbitrary task that may be processed later by a Queue consumer. 82# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#queues 83# [[queues.producers]] 84# binding = "MY_QUEUE" 85# queue = "my-queue" 86 87# Bind a Queue consumer. Queue Consumers can retrieve tasks scheduled by Producers to act on them. 88# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#queues 89# [[queues.consumers]] 90# queue = "my-queue" 91 92# Bind an R2 Bucket. Use R2 to store arbitrarily large blobs of data, such as files. 93# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#r2-buckets 94# [[r2_buckets]] 95# binding = "MY_BUCKET" 96# bucket_name = "my-bucket" 97 98# Bind another Worker service. Use this binding to call another Worker without network overhead. 99# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings 100# [[services]] 101# binding = "MY_SERVICE" 102# service = "my-service" 103 104# Bind a Vectorize index. Use to store and query vector embeddings for semantic search, classification and other vector search use-cases. 105# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#vectorize-indexes 106# [[vectorize]] 107# binding = "MY_INDEX" 108# index_name = "my-index"