Open History to see the last commit
1{
2 "$schema": "node_modules/wrangler/config-schema.json",
3 "name": "modelschemas",
4 "compatibility_date": "2025-09-02",
5 "compatibility_flags": ["nodejs_compat"],
6 "main": "src/worker.ts",
7 "vars": {
8 // Agent JWT audiences are origin-bound.
9 "BETTER_AUTH_URL": "https://modelschemas.com",
10 },
11 "observability": {
12 "enabled": true,
13 },
14 "workers_dev": true,
15 "routes": [{ "pattern": "modelschemas.com", "custom_domain": true }],
16 "triggers": {
17 // Fast tier: models poll. Slow tier: spec sync, sharded across four
18 // firings so each shard gets its own invocation budgets — keep in
19 // lockstep with SPEC_SYNC_SHARD_CRONS in src/server/ingest/sync.ts.
20 // FAL llms.txt rate-card extract is its own nightly invocation
21 // (FAL_PRICING_EXTRACT_CRON) so it does not spend the 15-min poll or
22 // FAL spec-sync shard's subrequest/CPU budget.
23 "crons": [
24 "*/15 * * * *",
25 "0 5 * * *",
26 "10 5 * * *",
27 "20 5 * * *",
28 "30 5 * * *",
29 "0 6 * * *",
30 "0 7 * * *",
31 "0 8 * * *",
32 "0 9 * * *",
33 "0 10 * * *",
34 "0 11 * * *",
35 ],
36 },
37 "limits": {
38 // Default is 30s CPU per invocation; FAL's shard parses and hashes
39 // ~1,400 per-model specs in one run, which can exceed that. Ceiling,
40 // not a floor — unused headroom costs nothing.
41 "cpu_ms": 300000,
42 },
43 "browser": {
44 "binding": "BROWSER",
45 "remote": true,
46 },
47 "send_email": [
48 {
49 "name": "EMAIL",
50 },
51 ],
52 "kv_namespaces": [
53 {
54 "binding": "SCHEMA_CACHE",
55 "id": "8c8f93fc618242d9b92d37bba437580f",
56 },
57 ],
58 "d1_databases": [
59 {
60 "binding": "DB",
61 "database_name": "modelschemas",
62 "database_id": "557c12a0-dbad-4d46-8925-36315d8ecba9",
63 "migrations_dir": "drizzle",
64 },
65 ],
66}