-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
48 lines (48 loc) · 2.15 KB
/
Copy pathwrangler.jsonc
File metadata and controls
48 lines (48 loc) · 2.15 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
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "api",
"account_id": "b6641681fe423910342b9ffa1364c76d",
"main": "src/index.ts",
"compatibility_date": "2026-02-17",
"compatibility_flags": ["nodejs_compat"],
"observability": {
"enabled": true
},
"tail_consumers": [
{ "service": "tail" }
],
"routes": [
// apis.do — own zone
{ "pattern": "apis.do/*", "zone_name": "apis.do" },
{ "pattern": "apis.do", "zone_name": "apis.do" },
// Key .do domains — serve API directory on /api paths
{ "pattern": "events.do/api*", "zone_name": "events.do" },
{ "pattern": "database.do/api*", "zone_name": "database.do" },
{ "pattern": "functions.do/api*", "zone_name": "functions.do" },
{ "pattern": "workflows.do/api*", "zone_name": "workflows.do" },
{ "pattern": "agents.do/api*", "zone_name": "agents.do" },
// Catch-all: /api on any custom hostname on workers.do zone
{ "pattern": "*/api*", "zone_name": "workers.do" }
],
"services": [
{ "binding": "AUTH", "service": "auth", "entrypoint": "AuthRPC" },
{ "binding": "OAUTH", "service": "oauth" },
{ "binding": "EVENTS", "service": "events", "entrypoint": "EventsService" },
{ "binding": "DATABASE", "service": "db-headless-ly", "entrypoint": "DatabaseDO" },
{ "binding": "OBJECTS", "service": "objects-do", "entrypoint": "ObjectsService" },
{ "binding": "CODE", "service": "code-headless-ly", "entrypoint": "CodeService" },
{ "binding": "AGENTS", "service": "agents-headless-ly", "entrypoint": "AgentsService" },
{ "binding": "PAYMENTS", "service": "payments-do" },
{ "binding": "GITHUB", "service": "github-do", "entrypoint": "GitHubService" },
{ "binding": "CLOUDFLARE", "service": "cloudflare-do", "entrypoint": "CloudflareService" },
{ "binding": "MCP_SERVER", "service": "mcp" },
{ "binding": "TAIL", "service": "tail" }
],
"migrations": [
{ "tag": "v1", "new_sqlite_classes": ["BatchStreamManager", "EventStreamManager", "SearchStreamManager"] },
{ "tag": "v2", "deleted_classes": ["BatchStreamManager", "EventStreamManager", "SearchStreamManager"] }
],
"vars": {
"API_NAME": "apis.do"
}
}