-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
40 lines (36 loc) · 760 Bytes
/
Copy pathwrangler.jsonc
File metadata and controls
40 lines (36 loc) · 760 Bytes
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
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "url-shortener",
"main": "src/index.ts",
"compatibility_date": "2024-01-01",
// KV for URL mappings (slug -> target URL)
"kv_namespaces": [
{
"binding": "URLS",
"id": "placeholder"
}
],
// D1 for click analytics
"d1_databases": [
{
"binding": "ANALYTICS_DB",
"database_name": "url-shortener-analytics",
"database_id": "placeholder"
}
],
// Durable Objects for real-time click counters
"durable_objects": {
"bindings": [
{
"name": "CLICK_COUNTER",
"class_name": "ClickCounter"
}
]
},
"migrations": [
{
"tag": "v2",
"new_sqlite_classes": ["ClickCounter"]
}
]
}