-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrangler.toml
More file actions
36 lines (30 loc) · 1.25 KB
/
wrangler.toml
File metadata and controls
36 lines (30 loc) · 1.25 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
name = "nomadically-janitor"
main = "workers/janitor.ts"
compatibility_date = "2026-02-01"
# Janitor Triggers - runs daily at midnight UTC
[triggers]
crons = ["0 0 * * *"]
# D1 Database
[[d1_databases]]
binding = "DB"
database_name = "nomadically-work-db"
database_id = "632b9c57-8262-40bd-86c2-bc08beab713b"
# Environment variables
[vars]
APP_URL = "https://nomadically.work"
# Secrets (set via: npx wrangler secret put SECRET_NAME --name nomadically-janitor)
# - INSERT_JOBS_URL REQUIRED — URL of deployed insert-jobs worker so janitor can trigger
# ingestion immediately after board discovery (Phase 3).
# Get the URL after deploying insert-jobs:
# npx wrangler deploy --config wrangler.insert-jobs.toml
# Then set it:
# echo "https://nomadically-work-insert-jobs.<your-subdomain>.workers.dev" | \
# npx wrangler secret put INSERT_JOBS_URL --name nomadically-janitor
# Without this, the janitor defers to insert-jobs' own 12h cron (still works,
# but ingestion won't start immediately after board discovery).
# Observability
[observability]
enabled = true
[observability.logs]
enabled = true
invocation_logs = true