Serve diffinery.com through a zone route (#3)
The apex already has DNS records, so attaching a Custom Domain fails (code 100117). A route on diffinery.com/* runs the Worker in front of the existing proxied record without deleting anything. Claude-Session: https://claude.ai/code/session_01AizKXSsengXZRegJxRATkL Co-authored-by: Claude <noreply@anthropic.com>
Canberk Demirci authored · GitHub committed signed1 parent d77e9f6commit 7146dbe1c6193367add69bace80a15902a6e875fBrowse files
2 files changed+4−2
modified.github/workflows/deploy.yml+1−1View file
| @@ -64,4 +64,4 @@ | ||
| 64 | 64 | code=$(curl -s -o /dev/null -w '%{http_code}' https://diffinery.com/healthz) && [ "$code" = 200 ] && exit 0 |
| 65 | 65 | sleep 10 |
| 66 | 66 | done |
| 67 | - echo "::error::https://diffinery.com/healthz did not return 200 (last: $code)"; exit 1 | |
| 67 | + echo "::error::https://diffinery.com/healthz did not return 200 (last: $code). Check that the diffinery.com DNS record is proxied (orange cloud)."; exit 1 |
modifiedapps/diffinery/wrangler.jsonc+3−1View file
| @@ -8,7 +8,9 @@ | ||
| 8 | 8 | "compatibility_date": "2026-10-01", |
| 9 | 9 | "compatibility_flags": ["nodejs_compat"], |
| 10 | 10 | "workers_dev": false, |
| 11 | - "routes": [{ "pattern": "diffinery.com", "custom_domain": true }], | |
| 11 | + // A zone route, not a Custom Domain: diffinery.com already has DNS records, and a | |
| 12 | + // route runs the Worker in front of them as long as the record is proxied (orange cloud). | |
| 13 | + "routes": [{ "pattern": "diffinery.com/*", "zone_name": "diffinery.com" }], | |
| 12 | 14 | "observability": { "enabled": true, "head_sampling_rate": 1 }, |
| 13 | 15 | "upload_source_maps": true, |
| 14 | 16 | "limits": { "cpu_ms": 300000 }, |