feat: initial MailOne worker (latest email per recipient, 24h retention)

This commit is contained in:
xiaolan
2026-02-26 09:32:57 +08:00
commit 93dfbc1e61
5 changed files with 182 additions and 0 deletions

11
wrangler.toml Normal file
View File

@@ -0,0 +1,11 @@
name = "mailone"
main = "src/index.js"
compatibility_date = "2026-02-25"
[[d1_databases]]
binding = "DB"
database_name = "mailone"
database_id = "YOUR_D1_DATABASE_ID"
[triggers]
crons = ["0 * * * *"]