Repository navigation
Fix NASA media loading and stale snapshot delivery - #1
Merged
Merged
Conversation
Normalize NASA Images asset URLs to HTTPS, restore remote images when their source changes, and display APOD video posters supplied by NASA. Render NASA media pages on demand while preserving provider cache and verified fallbacks; cover the behavior with unit and live browser tests.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contraill
added a commit
that referenced
this pull request
Oct 19, 2026
Fix NASA media loading and stale snapshot delivery
This branch was successfully deployed
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.
Problem and change
The production planet pages were prerendered with verified July snapshots at build time. A first visit could therefore show those snapshots until ISR regenerated the page, even when NASA endpoints were healthy. NASA Images manifests also supplied HTTP asset URLs, APOD video records exposed poster images that Helios ignored, and
RemoteMediakept its failure state when the source URL changed.Render the home and planet media routes on demand, while retaining each provider's fetch cache and verified fallback. Normalize NASA Images asset URLs to HTTPS, use APOD video posters when the feed provides an image, and scope remote image failures to the URL that failed.
Validation
pnpm verify: 431 tests passed.pnpm audit:providers: 12 providers passed.pnpm build: passed; home, body, and planet routes are dynamic in the build output./,/planet/earth, and/planet/mars, checking HTTPS sources andnaturalWidth > 0.The GIBS WMTS capabilities endpoint intermittently timed out during investigation. The existing dated fallback remains available for those upstream failures; no NASA API key is used by APOD, EPIC, GIBS, or NASA Images.