-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
54 lines (50 loc) · 1.49 KB
/
Copy pathwrangler.jsonc
File metadata and controls
54 lines (50 loc) · 1.49 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
/**
* For more details on how to configure Wrangler, refer to:
* https://developers.cloudflare.com/workers/wrangler/configuration/
*/
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "bahamut-daily-bonus",
"main": "src/index.ts",
"compatibility_date": "2025-08-13",
"compatibility_flags": ["nodejs_compat"],
"preview_urls": false,
/**
* Environment Variables
* https://developers.cloudflare.com/workers/wrangler/configuration/#environment-variables
*/
"vars": {
// Environment variables configuration
},
/**
* KV Namespace Bindings
* https://developers.cloudflare.com/workers/wrangler/configuration/#kv-namespaces
* Create with: npx wrangler kv namespace create "DAILY_STATUS"
*/
"kv_namespaces": [
{
"binding": "DAILY_STATUS",
"id": "REPLACE_WITH_REAL_ID",
},
],
/**
* Scheduled Events (Cron Triggers)
* https://developers.cloudflare.com/workers/configuration/cron-triggers/
*/
"triggers": {
"crons": [
"0 0 * * *", // 08:00 Taiwan (primary)
"0 2 * * *", // 10:00 Taiwan (retry 1)
"0 4 * * *", // 12:00 Taiwan (retry 2)
],
},
/**
* Secrets Configuration
* Use wrangler secret commands to set these values:
* wrangler secret put BAHAMUT_UID
* wrangler secret put BAHAMUT_PWD
* wrangler secret put BAHAMUT_TOTP (optional)
* wrangler secret put TELEGRAM_BOT_TOKEN (optional, Telegram Bot Token)
* wrangler secret put TELEGRAM_CHAT_ID (optional, Telegram Chat ID)
*/
}