Add variable bindings

This commit is contained in:
HoshinoKoji 2024-09-30 13:55:42 +08:00
parent ba8a7cd6ef
commit e86afb86ae

View File

@ -16,8 +16,8 @@ compatibility_flags = ["nodejs_compat"]
# - https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables # - https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables
# Note: Use secrets to store sensitive data. # Note: Use secrets to store sensitive data.
# - https://developers.cloudflare.com/workers/configuration/secrets/ # - https://developers.cloudflare.com/workers/configuration/secrets/
# [vars] [vars]
# MY_VARIABLE = "production_value" KEY_PREFIX = ""
# Bind the Workers AI model catalog. Run machine learning models, powered by serverless GPUs, on Cloudflares global network # Bind the Workers AI model catalog. Run machine learning models, powered by serverless GPUs, on Cloudflares global network
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#workers-ai # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#workers-ai
@ -91,9 +91,9 @@ compatibility_flags = ["nodejs_compat"]
# Bind an R2 Bucket. Use R2 to store arbitrarily large blobs of data, such as files. # Bind an R2 Bucket. Use R2 to store arbitrarily large blobs of data, such as files.
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#r2-buckets # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#r2-buckets
# [[r2_buckets]] [[r2_buckets]]
# binding = "MY_BUCKET" binding = "EXP_DATA"
# bucket_name = "my-bucket" bucket_name = "test"
# Bind another Worker service. Use this binding to call another Worker without network overhead. # Bind another Worker service. Use this binding to call another Worker without network overhead.
# Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings # Docs: https://developers.cloudflare.com/workers/wrangler/configuration/#service-bindings