Files
dbx/deploy
t8y2 48f3ed1d49 fix(plugin-stats): store the archive as one KV document
The archive kept one KV key per counter and rewrote each touched key on every
aggregation pass. The free plan caps writes to different keys at 1,000/day, so
a catch-up window spent the day's allowance, later retries failed mid-pass, and
the backlog kept growing. A pass now reads, mutates and writes a single
document, so the number of distinct keys is constant regardless of how many
plugins exist.

migrate-archive.mjs converts the legacy keys, verifies every value against the
document, and leaves the old keys in place as a read-only backup.
2026-11-11 10:33:05 +08:00
..