Add Cloudflare catch-all mail worker

This commit is contained in:
2026-07-22 13:40:09 +08:00
parent 0d98ffaf89
commit 5e993b5961
10 changed files with 1979 additions and 1 deletions
+19
View File
@@ -0,0 +1,19 @@
name = "cloudmail-inbox"
main = "src/index.ts"
compatibility_date = "2026-07-22"
# Create the database first, then replace this placeholder with its database_id.
[[d1_databases]]
binding = "DB"
database_name = "cloudmail-inbox"
database_id = "5cbdac91-52b5-41a1-9794-4b904897fe4b"
# Append-only mirror for the existing mail service. Existing mail_db records
# and schema are left intact.
[[d1_databases]]
binding = "LEGACY_DB"
database_name = "mail_db"
database_id = "01321ac1-5d9c-4b1a-bc99-7375726d546c"
[vars]
MAIL_DOMAIN = "yyggslive.cc.cd"