feat: add cron auto clean up (#189)

This commit is contained in:
Dream Hunter
2024-05-03 22:05:44 +08:00
committed by GitHub
parent 6e02e9b20b
commit 51ad37e951
16 changed files with 351 additions and 159 deletions

View File

@@ -56,12 +56,16 @@ pnpm run deploy
`wrangler.toml`
```bash
```toml
name = "cloudflare_temp_email"
main = "src/worker.js"
compatibility_date = "2023-08-14"
node_compat = true
# enable cron if you want set auto clean up
# [triggers]
# crons = [ "0 0 * * *" ]
[vars]
PREFIX = "tmp" # The mailbox name prefix to be processed
# If you want your site to be private, uncomment below and change your password