Repository navigation
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
67 lines (67 loc) · 2.09 KB
/
Copy pathwrangler.jsonc
File metadata and controls
67 lines (67 loc) · 2.09 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
62
63
64
65
66
67
{
// Cloudflare Worker config. See "Deploy" in README.md.
"$schema": "node_modules/wrangler/config-schema.json",
"name": "inboxos",
"main": "worker/index.ts",
"compatibility_date": "2026-09-01",
"compatibility_flags": [
"nodejs_compat"
],
"assets": {
"not_found_handling": "single-page-application",
"run_worker_first": [
"/api/*",
"/webhooks/*",
"/mcp",
"/mcp/*",
"/scim/*",
"/unsubscribe",
"/manifest.webmanifest"
]
},
"observability": {
"logs": {
"enabled": true,
"head_sampling_rate": 1,
"invocation_logs": true
}
},
"d1_databases": [
{
"binding": "DB",
"database_name": "inboxos",
// Paste the id printed by `npx wrangler d1 create inboxos`.
"database_id": "00000000-0000-0000-0000-000000000000",
"migrations_dir": "migrations"
}
],
"r2_buckets": [
{
"binding": "FILES",
"bucket_name": "inboxos-files"
}
],
// Serve the app on your own hostname. Uncomment and set it to the address you'll use.
// Add one entry per hostname (e.g. mail.example.com and mail.example.org).
// "routes": [
// { "pattern": "mail.example.com", "custom_domain": true }
// ],
// Every minute: dispatch scheduled sends, deliver webhooks. Daily cleanup runs inside the same handler.
"triggers": {
"crons": [
"* * * * *"
]
},
"vars": {
// Public URL of the app (used for OAuth redirects, invite links and webhooks).
"APP_URL": "http://localhost:5173"
}
// Secrets (set with `npx wrangler secret put <NAME>`):
// SESSION_SECRET required: any long random string (signs links, encrypts stored keys).
// The setup wizard asks for it to create the first owner, unless SETUP_TOKEN is set.
// SETUP_TOKEN optional: a separate key for creating the first owner in the setup wizard
// RESEND_API_KEY optional: can be entered in the setup wizard instead
// RESEND_WEBHOOK_SECRET optional: captured automatically by the setup wizard
// GOOGLE_CLIENT_ID / GOOGLE_CLIENT_SECRET optional: enables Google sign-in
// VAPID_PRIVATE_JWK optional: enables push notifications
}