-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathwrangler.toml
More file actions
30 lines (25 loc) · 828 Bytes
/
wrangler.toml
File metadata and controls
30 lines (25 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name = "open-temp-mail"
main = "worker/src/server.js"
compatibility_date = "2024-01-01"
# D1 Database Binding
[[d1_databases]]
binding = "TEMP_MAIL_DB"
database_name = "maill_free_db" # Replace with your D1 database name
database_id = "46d67b6b-4a93-46d67b6b-9769-46d67b6b" # Updated with user's database_id
preview_database_id = "46d67b6b-4a93-46d67b6b-9769-46d67b6b"
# Environment Variables
[vars]
# FORWARD_RULES="[{\"prefix\":\"vip\",\"email\":\"a@example.com\"},{\"prefix\":\"*\",\"email\":\"admin@example.com\"}]"
MAIL_DOMAIN = "domain.com"
# Static Assets (Vite build output)
[assets]
directory = "dist"
binding = "ASSETS"
# R2 Bucket Binding (for full EML content)
[[r2_buckets]]
binding = "MAIL_EML"
bucket_name = "mail-eml"
preview_bucket_name = "mail-eml"
# Observability
# [observability.logs]
# enabled = true