-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
53 lines (48 loc) · 2.92 KB
/
Copy pathwrangler.jsonc
File metadata and controls
53 lines (48 loc) · 2.92 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
{
"$schema": "./node_modules/wrangler/config-schema.json",
"name": "vc-bots",
"main": "src/index.ts",
// Pinned past date for stable runtime behavior. Bump deliberately, not casually.
"compatibility_date": "2026-01-01",
// Co-working room state. One DO instance per Zoom meeting ID (addressed via getByName).
"durable_objects": {
"bindings": [{ "name": "COWORKING_ROOM", "class_name": "CoworkingRoom" }]
},
// SQLite-backed DO storage (GA, included on the Workers free plan).
"migrations": [{ "tag": "v1", "new_sqlite_classes": ["CoworkingRoom"] }],
// Event announcements. Cron triggers fire in UTC; 12:00 UTC = 8am EDT / 7am EST
// (accepted DST drift). These MUST stay byte-identical to CRON_TO_KIND in
// src/bots/reminders/index.ts — that string is the lookup key mapping a fired cron to a
// reminder kind. To disable, set this to an empty array (NOT by dropping the key —
// deploying [] removes any crons registered on Cloudflare, whereas dropping the key
// entirely would leave them running).
// ⚠️ Cloudflare parses weekdays Quartz-style: 1 = Sunday … 7 = Saturday, NOT the Unix
// convention (0 = Sunday). A numeric "1" here meant Sunday and fired the weekly a day
// early — always spell weekdays as 3-letter abbreviations, as Cloudflare's docs advise.
// "0 12 * * *" — daily (summary + schedules the starting-soon messages)
// "0 12 * * MON" — weekly (Monday summary; the daily run skips its summary that day)
"triggers": { "crons": ["0 12 * * *", "0 12 * * MON"] },
"observability": { "enabled": true },
// Non-secret config (single room). Secrets go via `wrangler secret put` / `.dev.vars`.
"vars": {
"ZOOM_MEETING_ID": "81323022832",
// Netlify rewrites virtualcoffee.io/bots/* to this Worker (stripping the /bots prefix);
// used only for the user-facing join link. Empty/unset falls back to the request origin.
"PUBLIC_BASE_URL": "https://virtualcoffee.io/bots",
"SLACK_COWORKING_CHANNEL_ID": "C01SAU1B7B9",
"ROOM_TITLE": "Co-Working Room",
// Community maintainers @-mentioned at the end of the welcome message / App Home.
"WELCOME_MAINTAINER_IDS": "U014HT3RNCU,U0157K5MUPJ,U01577R42TS,U01B9NQF2PR",
// Event announcements. Starting-soon messages → events; daily/weekly summaries →
// announcements; event-admin gets a mirror of each starting-soon message with extra
// info like the Zoom host code.
"SLACK_EVENTS_CHANNEL_ID": "C017WAKN883",
"SLACK_ANNOUNCEMENTS_CHANNEL_ID": "C014AAPC09K",
"SLACK_EVENTADMIN_CHANNEL_ID": "C0360K84NEQ",
// Private bot-log channel for error alerts (cron + co-working DO/Zoom failures). Empty
// disables alerting; the bot must be invited to the channel before it can post there.
"SLACK_BOTLOG_CHANNEL_ID": "C0BATRPD3QC",
"CMS_GRAPHQL_URL": "https://members.virtualcoffee.io/api",
"LOG_LEVEL": "info" // debug | info | warn | error (set LOG_LEVEL=debug in .dev.vars locally)
}
}