A deployed Worker's fetch() cannot reach the API on :3000, so publish it at https://search-api.theradicalparty.com through a Cloudflare Tunnel. Point the frontend API_URL at HTTPS/443, add cloudflared install to install-vm.sh (driven by CLOUDFLARED_TOKEN), thread the token through deploy.sh, and add docs/DEPLOY.md with the full tunnel + DNS setup. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
14 lines
497 B
JSON
14 lines
497 B
JSON
{
|
|
"name": "search-engine-frontend",
|
|
"main": "src/index.ts",
|
|
"compatibility_date": "2025-01-01",
|
|
"compatibility_flags": ["nodejs_compat"],
|
|
"routes": [
|
|
{ "pattern": "search.theradicalparty.com/*", "zone_name": "theradicalparty.com" }
|
|
],
|
|
"vars": {
|
|
// API is fronted by a Cloudflare Tunnel on HTTPS/443 — a deployed Worker's
|
|
// fetch() cannot reliably reach non-standard ports (e.g. :3000). See docs/DEPLOY.md.
|
|
"API_URL": "https://search-api.theradicalparty.com"
|
|
}
|
|
}
|