instructor
56 строк · 2.2 Кб
1name = "instructor-hub-proxy"
2main = "src/index.ts"
3compatibility_date = "2024-02-08"
4
5# Variable bindings. These are arbitrary, plaintext strings (similar to environment variables)
6# Note: Use secrets to store sensitive data.
7# Docs: https://developers.cloudflare.com/workers/platform/environment-variables
8# [vars]
9# MY_VARIABLE = "production_value"
10
11# Bind a KV Namespace. Use KV as persistent storage for small key-value pairs.
12# Docs: https://developers.cloudflare.com/workers/runtime-apis/kv
13# [[kv_namespaces]]
14# binding = "MY_KV_NAMESPACE"
15# id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
16
17# Bind an R2 Bucket. Use R2 to store arbitrarily large blobs of data, such as files.
18# Docs: https://developers.cloudflare.com/r2/api/workers/workers-api-usage/
19# [[r2_buckets]]
20# binding = "MY_BUCKET"
21# bucket_name = "my-bucket"
22
23# Bind a Queue producer. Use this binding to schedule an arbitrary task that may be processed later by a Queue consumer.
24# Docs: https://developers.cloudflare.com/queues/get-started
25# [[queues.producers]]
26# binding = "MY_QUEUE"
27# queue = "my-queue"
28
29# Bind a Queue consumer. Queue Consumers can retrieve tasks scheduled by Producers to act on them.
30# Docs: https://developers.cloudflare.com/queues/get-started
31# [[queues.consumers]]
32# queue = "my-queue"
33
34# Bind another Worker service. Use this binding to call another Worker without network overhead.
35# Docs: https://developers.cloudflare.com/workers/platform/services
36# [[services]]
37# binding = "MY_SERVICE"
38# service = "my-service"
39
40# Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model.
41# Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.
42# Docs: https://developers.cloudflare.com/workers/runtime-apis/durable-objects
43# [[durable_objects.bindings]]
44# name = "MY_DURABLE_OBJECT"
45# class_name = "MyDurableObject"
46
47# Durable Object migrations.
48# Docs: https://developers.cloudflare.com/workers/learning/using-durable-objects#configure-durable-object-classes-with-migrations
49# [[migrations]]
50# tag = "v1"
51# new_classes = ["MyDurableObject"]
52
53[[d1_databases]]
54binding = "DB" # i.e. available in your Worker on env.DB
55database_name = "cli_analytics"
56database_id = "607034d8-267d-42d7-8c0b-462aec83d955"