2023-09-11 18:04:44 +00:00
|
|
|
name = "test"
|
|
|
|
|
2023-10-02 14:04:57 +00:00
|
|
|
kv_namespaces = [
|
|
|
|
{ binding = "KV", id = "<YOUR_ID>", preview_id = "<YOUR_ID>" },
|
|
|
|
{ binding = "KV_PROD", id = "<YOUR_ID>", preview_id = "<YOUR_ID>" }
|
|
|
|
]
|
|
|
|
|
2023-09-11 18:04:44 +00:00
|
|
|
[vars]
|
|
|
|
COOL = "ME"
|
2023-10-02 14:04:57 +00:00
|
|
|
|
|
|
|
[[d1_databases]]
|
|
|
|
binding = "D1" # Should match preview_database_id, i.e. available in your Worker on env.DB
|
|
|
|
database_name = "<DATABASE_NAME>"
|
|
|
|
database_id = "<unique-ID-for-your-database>"
|
|
|
|
preview_database_id = "D1" # Required for Pages local development
|
|
|
|
|
|
|
|
[[d1_databases]]
|
|
|
|
binding = "D1_PROD" # Should match preview_database_id
|
|
|
|
database_name = "<DATABASE_NAME>"
|
|
|
|
database_id = "<unique-ID-for-your-database>"
|
|
|
|
preview_database_id = "D1_PROD" # Required for Pages local development
|
|
|
|
|
|
|
|
[[r2_buckets]]
|
|
|
|
binding = 'R2' # <~ valid JavaScript variable name
|
|
|
|
bucket_name = '<YOUR_BUCKET_NAME>'
|
|
|
|
|
|
|
|
[[r2_buckets]]
|
|
|
|
binding = 'R2_PROD' # <~ valid JavaScript variable name
|
|
|
|
bucket_name = '<YOUR_BUCKET_NAME>'
|
|
|
|
|
|
|
|
[[durable_objects.bindings]]
|
|
|
|
name = "DO"
|
|
|
|
class_name = "DurableObjectExample"
|
|
|
|
|
|
|
|
[[durable_objects.bindings]]
|
|
|
|
name = "DO_PROD"
|
|
|
|
class_name = "DurableObjectProductionExample"
|