优化降低所需配置简化部署

This commit is contained in:
eoao
2026-01-19 19:22:00 +08:00
parent ec3bd76666
commit d3235bdd17
7 changed files with 273 additions and 61 deletions

View File

@@ -1,11 +1,14 @@
name = "cloud-mail"
name = "${NAME}"
main = "src/index.js"
compatibility_date = "2025-06-04"
workers_dev = true
[observability]
enabled = true
[[routes]]
pattern = "${CUSTOM_DOMAIN}"
custom_domain = true
[[d1_databases]]
binding = "db"
database_name = "cloud-mail" # 数据库的名称