// Eranos Cloud Worker: serves the React web app plus native 24/7 `/api/*` endpoints backed by // Cloudflare D1 (`ta-amps-fabric`) and `tessera` + `herma` Cloud Service Bindings (`env.TESSERA`, // `env.HERMA`), with optional `STORAGE_MODE = "origin"` reverse-proxy fallback. { "name": "eranos", "main": "worker.js", "compatibility_date": "2026-10-01", "workers_dev": true, // Uncomment or set via notes/bind-single-domain.sh once your single root domain is added to Cloudflare: // "routes": [{ "pattern": "eranos.", "custom_domain": true }], "assets": { "directory": "../../web/dist", "binding": "ASSETS", "not_found_handling": "single-page-application", "run_worker_first": true }, "d1_databases": [ { "binding": "FABRIC_DB", "database_name": "ta-amps-fabric", "database_id": "bc3deb8e-1841-4df3-8fd5-e70f800835d1" } ], "services": [ { "binding": "TESSERA", "service": "tessera" }, { "binding": "HERMA", "service": "herma" } ], "vars": { "STORAGE_MODE": "cloud", "API_ORIGIN": "https://eranos-api.fly.dev" }, "observability": { "enabled": true, "traces": { "enabled": true } } }