cipher/wrangler.jsonc
maverick 372a77754a Fix PBKDF2 iteration cap (Workers max 100k), add custom domain + error handler
- PBKDF2 iterations 210k->100k (Cloudflare WebCrypto hard limit; miniflare didn't enforce)
- Add cipher.theradicalparty.com custom domain route
- Add onError handler
- Verified live: E2E delivery + offline store-and-forward both working

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-22 02:04:40 +10:00

41 lines
930 B
JSON

{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "cipher",
"main": "src/index.js",
"compatibility_date": "2025-07-01",
"compatibility_flags": ["nodejs_compat"],
"observability": { "enabled": true },
"routes": [
{ "pattern": "cipher.theradicalparty.com", "custom_domain": true }
],
"assets": {
"directory": "./public",
"binding": "ASSETS",
"not_found_handling": "single-page-application"
},
"d1_databases": [
{
"binding": "DB",
"database_name": "cipher",
"database_id": "f80ec87d-02ad-486d-b33a-50322f33c235",
"migrations_dir": "migrations"
}
],
"r2_buckets": [
{
"binding": "MEDIA",
"bucket_name": "cipher-media"
}
],
"durable_objects": {
"bindings": [
{ "name": "MAILBOX", "class_name": "Mailbox" }
]
},
"migrations": [
{
"tag": "v1",
"new_sqlite_classes": ["Mailbox"]
}
]
}