-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
47 lines (46 loc) · 1.22 KB
/
wrangler.jsonc
File metadata and controls
47 lines (46 loc) · 1.22 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
/**
* 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": "webhook-debugger",
"main": "src/index.ts",
"compatibility_date": "2026-02-12",
"compatibility_flags": [
"nodejs_compat",
"global_fetch_strictly_public"
],
"observability": {
"enabled": true
},
// D1 Database binding - update database_id after running `wrangler d1 create webhook-debugger-db`
"d1_databases": [
{
"binding": "DB",
"database_name": "webhook-debugger-db",
"database_id": "e3e65264-4feb-4820-a37e-a570cc05570b"
}
],
// Environment variables (non-sensitive)
// Update GITHUB_CLIENT_ID with your GitHub OAuth App client ID
"vars": {
"GITHUB_CLIENT_ID": "Ov23lizRkpj2eZTdCFUi"
},
// Secrets (set via `wrangler secret put`)
// GITHUB_CLIENT_SECRET - GitHub OAuth app secret
// COOKIE_SECRET - Session cookie signing secret
// Cron trigger for webhook cleanup (runs daily at midnight UTC)
"triggers": {
"crons": ["0 0 * * *"]
},
// Dev server configuration
"dev": {
"port": 8787
},
// Static assets - serve public/ directory
"assets": {
"directory": "./public",
"binding": "ASSETS"
}
}