Files
claude-code-routine-trigger…/wrangler.toml
T

25 lines
910 B
TOML

name = "claude-code-routine-trigger-worker"
main = "worker.js"
compatibility_date = "2026-05-09"
compatibility_flags = ["nodejs_compat"]
# Plain (non-secret) vars. Override per-environment in the dashboard or via
# `wrangler.toml` env blocks. Secrets go through `wrangler secret put`.
[vars]
TEXT_TEMPLATE = "Scheduled trigger at {LocalTime}"
TZ = "Asia/Ho_Chi_Minh"
# Cron triggers fire from this list. CF Workers requires literal cron
# expressions here — they cannot be loaded from env vars or secrets.
# Schedule (Asia/Ho_Chi_Minh, UTC+7): hourly at :00 from 05:00 to 23:00,
# plus a single fire at 00:00 — 20 fires/day, every hour except 01-04.
# Crons evaluate in UTC; UTC+7 hours {00, 05..23} map to UTC {17, 22-23, 0-16}.
[triggers]
crons = [
"0 0-17,22-23 * * *", # UTC+7: 00:00 + 05:00..23:00 hourly
]
# Built-in observability (free tier supports basic logs).
[observability]
enabled = true