mirror of
https://github.com/wahyd4/heygo.git
synced 2026-08-09 05:15:52 +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
25 lines
770 B
Terraform
25 lines
770 B
Terraform
output "d1_database_id" {
|
|
value = cloudflare_d1_database.shortlinks.id
|
|
description = "D1 database UUID. Copy this into the database_id field of the matching wrangler config."
|
|
}
|
|
|
|
output "kv_namespace_id" {
|
|
value = cloudflare_workers_kv_namespace.public_cache.id
|
|
description = "Workers KV namespace ID. Copy this into the id field of the matching wrangler config."
|
|
}
|
|
|
|
output "worker_name" {
|
|
value = var.worker_name
|
|
description = "Name of the deployed Cloudflare Worker service."
|
|
}
|
|
|
|
output "public_domain" {
|
|
value = var.public_domain
|
|
description = "Public shortlinks hostname served by the Worker."
|
|
}
|
|
|
|
output "private_domain" {
|
|
value = var.private_domain
|
|
description = "Private shortlinks hostname served by the Worker."
|
|
}
|