Files
vnidrop/services/diagnostics-api/wrangler.jsonc
cdricms 3e18378610 refactor(diagnostics-api): drop telemetry and crash ingestion, keep bug reports
Remove the /v1/events and /v1/crashes routes, their normalizers and storage
paths, and simplify retention to the bugs table. Add a migration dropping the
now-unused event_batches and crashes tables, and regenerate worker types.
2026-08-02 10:03:12 +02:00

55 lines
1.0 KiB
JSON

{
"$schema": "./node_modules/wrangler/config-schema.json",
"name": "vnidrop-diagnostics",
"main": "src/index.ts",
"workers_dev": true,
"preview_urls": false,
"compatibility_date": "2026-07-14",
"compatibility_flags": ["nodejs_compat"],
"upload_source_maps": true,
"observability": {
"enabled": true,
"head_sampling_rate": 0.1,
},
"triggers": {
"crons": ["17 * * * *"],
},
"d1_databases": [
{
"binding": "DB",
"database_name": "vnidrop-diagnostics",
"database_id": "b9e18b17-d9fe-477b-8ace-2b1439d1694e",
"migrations_dir": "migrations",
},
],
"r2_buckets": [
{
"binding": "BLOBS",
"bucket_name": "vnidrop-diagnostics",
"jurisdiction": "eu",
},
],
"ratelimits": [
{
"name": "INSTALL_RATE_LIMITER",
"namespace_id": "1001",
"simple": {
"limit": 30,
"period": 60,
},
},
{
"name": "SOURCE_RATE_LIMITER",
"namespace_id": "1002",
"simple": {
"limit": 120,
"period": 60,
},
},
],
"vars": {
"MAX_BODY_BYTES": "262144",
"RETENTION_DAYS": "90",
},
}