1name = "jevhooks" 2main = "build/index.js" 3compatibility_date = "2026-09-01" 4 5# Two homes: the account's workers.dev address, and the custom domain hooks.lmjtfy.fun, whose DNS 6# record a Workers custom domain creates on deploy (as it does for lmjtfy.fun and 7# whiskers.lmjtfy.fun). Any address but the canonical one sends a reader on to it (src/lib.rs, 8# `gate`). The canonical one comes from SITE_ORIGIN, which the deploy passes, so this file carries 9# no account name. 10workers_dev = true 11preview_urls = false 12routes = [{ pattern = "hooks.lmjtfy.fun", custom_domain = true }] 13 14[build] 15# The link preview's card and the Worker (tools/build-web.sh). Runs from this directory. 16command = "../tools/build-web.sh" 17watch_dir = ["src", "../third-party/jevcrates/jev-ui", "../plugin/hooks", "../crates/jevhooks-daemon/src"] 18 19# The link preview's card, built into public/preview/. The Worker runs first for it, so the address 20# gate and the security headers apply to it like everything else. 21[assets] 22directory = "./public" 23binding = "ASSETS" 24run_worker_first = ["/preview/*"] 25 26[vars] 27# Where the site is, for the link preview's absolute addresses and the address gate. 28SITE_ORIGIN = "http://localhost:8790" # production: https://hooks.lmjtfy.fun, passed at deploy 29 30# Cloudflare's own record of what the Worker did. Invocation logs are off: they record each 31# request, and this site writes no visitor down. The Worker's own lines (src/log.rs) carry a 32# route, a method, a status and a time, and nothing else. 33[observability] 34enabled = true 35 36[observability.logs] 37enabled = true 38invocation_logs = false 39head_sampling_rate = 1