Repository navigation
Expand file tree
/
Copy pathwrangler.toml
More file actions
61 lines (46 loc) · 1.9 KB
/
Copy pathwrangler.toml
File metadata and controls
61 lines (46 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name = "learn"
main = "src/worker.py"
compatibility_date = "2024-09-23"
compatibility_flags = ["python_workers"]
[assets]
directory = "./public"
binding = "ASSETS"
run_worker_first = ["/api/*", "/media/*", "/admin", "/admin/*", "/admin-*", "/ref/*", "/activity/*", "/blog/*", "/en/*", "/es/*", "/fr/*", "/de/*", "/zh/*", "/*.html", "/", "/activity", "/classes-map", "/requests", "/waiting-rooms", "/cart", "/checkout-success", "/dashboard", "/donate", "/feedback", "/forgot-password", "/login", "/notification-preferences", "/notifications", "/profile", "/referral-leaderboard", "/reset-password", "/status", "/teach", "/verify-email", "/virtual-classroom", "/whiteboard", "/calculator", "/contributors", "/gsoc", "/about", "/terms", "/privacy", "/cookies", "/429", "/500", "/features", "/legacy-features", "/forum", "/blog", "/study-groups", "/quizzes", "/surveys", "/challenges", "/progress", "/grade-links", "/calendar", "/memes", "/success-stories", "/feature-votes", "/messages"]
html_handling = "auto-trailing-slash"
not_found_handling = "404-page"
# Run `wrangler d1 create education_db` and paste the returned UUID below.
[[d1_databases]]
binding = "DB"
database_name = "education_db"
database_id = "a0021f2e-a8cc-4e20-8910-3c7290ba47a6"
migrations_dir = "migrations"
# Virtual Classroom Durable Object
[[durable_objects.bindings]]
name = "CLASSROOM_DO"
class_name = "ClassroomDO"
[[durable_objects.bindings]]
name = "PRESENCE_DO"
class_name = "PresenceDO"
[[migrations]]
tag = "v1"
new_sqlite_classes = ["ClassroomDO"]
[[migrations]]
tag = "v2"
new_sqlite_classes = ["PresenceDO"]
[[r2_buckets]]
binding = "MY_BUCKET"
bucket_name = "alphaonelabs-production"
[observability]
enabled = false
head_sampling_rate = 1
[observability.logs]
enabled = true
head_sampling_rate = 1
persist = true
invocation_logs = true
[observability.traces]
enabled = false
persist = true
head_sampling_rate = 1
[triggers]
crons = ["0 13 * * *"]