-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
41 lines (40 loc) · 1.19 KB
/
Copy pathwrangler.jsonc
File metadata and controls
41 lines (40 loc) · 1.19 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
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "opencase",
"compatibility_date": "2025-12-06",
"pages_build_output_dir": "./dist",
"compatibility_flags": ["nodejs_compat"],
"d1_databases": [
{
"binding": "DB",
"database_name": "opencase-db",
"database_id": "local-dev-db"
}
],
"kv_namespaces": [
{
"binding": "KV",
"id": "opencase-kv",
"preview_id": "opencase-kv-preview"
}
],
// Cron trigger for scheduled tasks (3:00 AM IST = 21:30 UTC)
"triggers": {
"crons": ["30 21 * * *"]
},
"vars": {
"KITE_API_KEY": "",
"KITE_REDIRECT_URL": "http://localhost:3000/api/auth/callback",
// Token cleanup configuration
// Set to "false" to disable automatic token cleanup
"TOKEN_CLEANUP_ENABLED": "true",
// Time to disconnect brokers (24-hour format, e.g., "03:00")
"TOKEN_CLEANUP_TIME": "03:00",
// Your timezone (e.g., "Asia/Kolkata", "America/New_York", "UTC")
"TOKEN_CLEANUP_TIMEZONE": "Asia/Kolkata",
// Hours after which tokens expire (broker tokens typically expire in 24h)
"TOKEN_EXPIRY_HOURS": "24",
// User session expiry in days
"SESSION_EXPIRY_DAYS": "60"
}
}