Skip to content

Fix NASA media loading and stale snapshot delivery - #1

Merged
Contraill merged 1 commit into
mainfrom
fix/nasa-media-loading
Oct 19, 2026
Merged

Contraill merged 1 commit into
mainfrom
fix/nasa-media-loading

Conversation

@Contraill

Copy link
Copy Markdown
Owner

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 RemoteMedia kept 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.
  • Chromium Playwright external-data smoke tests: 4 passed.
  • Opt-in live NASA browser tests: 3 passed for /, /planet/earth, and /planet/mars, checking HTTPS sources and naturalWidth > 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.

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.
@vercel

vercel Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
helios Ready Ready Preview Oct 19, 2026 11:45am UTC

@Contraill
Contraill merged commit 6a8d200 into main Oct 19, 2026
11 checks passed
@Contraill
Contraill deleted the fix/nasa-media-loading branch October 19, 2026 12:49
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

1 active deployment
Preview — 6a95cb8e Deployed Oct 19, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant