Primary finding
Use of Array.prototype.toSorted requires Node 20+ — may crash on Node 18 runtimes
mediumbuild-releasemedium
- apps/web/app/receipts.rss/route.ts:51-53
- apps/web/scripts/backfill-benchmark-flag.ts:189-191
Array.prototype.toSorted is an ES2023 feature available in Node 20+. If this code runs in environments pinned to Node 18 (common in older Next.js/Vercel setups or developer machines), the call will throw TypeError: items.toSorted is not a function at runtime, breaking the RSS route and the admin script.
Recommendation
Either ensure the deployment and tooling are locked to Node 20+ (via engines field, CI matrix, and hosting runtime), or replace toSorted with a backward-compatible pattern: const items = [...sameRepoItems, ...crossRepoItems].sort((a,b)=>...). For the script: Array.from(...).sort(...).