Files
mailflare/wrangler.jsonc.example
T
2026-06-18 23:24:27 +07:00

89 lines
1.5 KiB
Plaintext

{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "mailflare",
"main": "./worker.ts",
"compatibility_date": "2026-05-20",
"compatibility_flags": [
"nodejs_compat",
"global_fetch_strictly_public"
],
"assets": {
"binding": "ASSETS",
"directory": ".open-next/assets",
},
"images": {
"binding": "IMAGES",
},
"services": [
{
"binding": "WORKER_SELF_REFERENCE",
"service": "mailflare",
},
],
"workflows": [
{
"name": "mailflare-database-backup",
"binding": "DATABASE_BACKUP_WORKFLOW",
"class_name": "DatabaseBackupWorkflow",
"schedules": ["0 2 * * *"],
},
],
"ratelimits": [
{
"name": "LOGIN_RATE_LIMIT",
"namespace_id": "1001",
"simple": {
"limit": 20,
"period": 60,
},
},
],
"observability": {
"enabled": true,
},
"upload_source_maps": true,
"send_email": [
{
"name": "EMAIL",
"remote": true,
},
],
"d1_databases": [
{
"binding": "DB",
"database_name": "mailflare",
"migrations_dir": "drizzle/migrations",
},
],
"r2_buckets": [
{
"binding": "BUCKET",
"bucket_name": "mailflare-raw",
},
],
"queues": {
"producers": [
{
"binding": "INBOUND_QUEUE",
"queue": "mailflare-inbound",
},
{
"binding": "OUTBOUND_QUEUE",
"queue": "mailflare-outbound",
},
],
"consumers": [
{
"queue": "mailflare-inbound",
"max_batch_size": 5,
"max_retries": 3,
},
{
"queue": "mailflare-outbound",
"max_batch_size": 5,
"max_retries": 3,
},
],
},
}