mirror of
https://github.com/wahyd4/heygo.git
synced 2026-08-08 21:05:48 +10:00
- 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
34 lines
781 B
JSON
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"
|
|
}
|
|
]
|
|
}
|