Files
heygo/wrangler.prod.jsonc
T
Hermes Agent e4fbbaec14 feat: add terraform IaC, dev/prod environments, and multi-host worker support
- Terraform configs for D1 databases, KV namespaces, Worker custom domains
- wrangler.dev.jsonc and wrangler.prod.jsonc for environment-specific deployments
- Worker code refactored to use env vars for host checking (PUBLIC_HOST, PRIVATE_HOST)
- Configurable app URLs and cookie domain via env vars
- Deploy and migrate npm scripts for dev/prod
- Updated all tests with new env fixtures
- Deployment guide in README
2026-06-20 14:26:56 +10:00

34 lines
781 B
JSON

{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "heygo",
"main": "worker/index.ts",
"compatibility_date": "2026-06-20",
"assets": {
"directory": "./dist/client",
"not_found_handling": "single-page-application"
},
"observability": {
"enabled": true
},
"vars": {
"PUBLIC_HOST": "heygo.cc",
"PRIVATE_HOST": "my.heygo.cc",
"APP_BASE_URL": "https://heygo.cc",
"COOKIE_DOMAIN": ".heygo.cc"
},
"d1_databases": [
{
"binding": "DB",
"database_name": "heygo-shortlinks",
"database_id": "00000000-0000-0000-0000-000000000000",
"migrations_dir": "migrations"
}
],
"kv_namespaces": [
{
"binding": "PUBLIC_LINK_CACHE",
"id": "00000000-0000-0000-0000-000000000000"
}
]
}