Repository navigation
fix(data): fresher fallback feed and honest unavailable state - #182
Merged
Merged
Conversation
When the live CBP endpoint fails, read the collector's committed feed via a same-origin rewrite and keep the newer of it and the bundled copy (which only refreshes on daily Vercel deploys). When nothing loads, stop labeling the empty state as saved fallback data or a filter result (EN/ES). Entry budget 62 -> 62.25 KB gzip (+0.19 KB measured) for this fix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JB1Z5Jn58ixqZtx1YGzvmC
sbc1-code
marked this pull request as ready for review
November 10, 2026 03:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Resumes the Nov 5 BorderPulse fallback findings, rebuilt from current main (the Nov 5 candidate was never pushed).
/api/public/crossingsfails, the client now also reads the collector's committed feed through a same-origin rewrite (/data/latest/crossings.json-> GitHubmain/public/data/crossings.json) and keeps whichever valid backup is newer: collector feed or bundled copy. The bundled copy only refreshes on daily Vercel deploys. Readings stay labeled as fallback with their original clock.Checks
npm testpasses after a prerendered build.Not verified
/data/latest/crossings.jsonon this PR's preview before merging.Not merged. Needs owner approval.
Generated by Claude Code