{ "$schema": "node_modules/wrangler/config-schema.json", "name": "echolot-site", "main": "src/index.js", "compatibility_date": "2026-07-30", // Static files are served directly from the edge; the Worker only runs for // paths that do not match a file (i.e. /apk and /fdroid below). "assets": { "directory": "./public", "binding": "ASSETS" }, // Both hostnames must exist as zones/records in the same Cloudflare account. "routes": [ { "pattern": "echo-lot.app", "custom_domain": true }, { "pattern": "www.echo-lot.app", "custom_domain": true } ], // Nothing here needs touching per release: /apk asks the Gitea API for the // latest release at request time (edge-cached 5 min). Any empty value makes // its route fall back to the homepage's install section, so nothing 404s // before the first release exists. "vars": { // Gitea repo API base, e.g. "https://git.example.net/api/v1/repos/mram/echolot". // The repo (or at least its releases) must be publicly readable. "GITEA_REPO_API": "", // Manual override / fallback while GITEA_REPO_API is unset or unreachable. "DOWNLOAD_URL": "", // F-Droid listing, once it exists: https://f-droid.org/packages/app.echo_lot.app/ "FDROID_URL": "", // Public source URL, the footer + /source target. "SOURCE_URL": "" } }