mirror of
https://github.com/wahyd4/heygo.git
synced 2026-08-09 05:15:52 +10:00
- PUBLIC_HOST/PRIVATE_HOST='*' matches any hostname (localhost, LAN IPs) - Public route falls through to private on 404 (shared host in local dev) - If both return 404, keep original public 404 response - APP_BASE_URL updated to http://localhost:8787 for local dev
34 lines
760 B
JSON
34 lines
760 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": "*",
|
|
"PRIVATE_HOST": "*",
|
|
"APP_BASE_URL": "http://localhost:8787",
|
|
"COOKIE_DOMAIN": ""
|
|
},
|
|
"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"
|
|
}
|
|
]
|
|
}
|