Skip to content

fix: recover artwork when Vercel image optimization fails - #34

Merged
voltcrash merged 7 commits into
mainfrom
fix/image-optimizer-fallback
Oct 2, 2026
Merged

voltcrash merged 7 commits into
mainfrom
fix/image-optimizer-fallback

Conversation

@voltcrash

Copy link
Copy Markdown
Owner

Vercel's image optimizer returns HTTP 402 on the live site, leaving Pokémon artwork and thumbnails unavailable. Retry the original image once after an optimization failure, clear responsive candidates so they cannot select the failed optimizer URL again, and retain the existing unavailable placeholder if the original artwork also fails.

Apply the fallback to Pokémon artwork, pickers, command search, saved teams and collections.

Validation:

  • vp check, vp run check, and the data script TypeScript check pass
  • vp test: 108 tests across 23 files pass, including optimizer failure and retry limits
  • VERCEL=1 vp build succeeds
  • Browser against that production build: failed optimizer requests recover Pikachu and Charizard artwork from their original sources at full width

@vercel

vercel Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
dexa Ready Ready Preview Oct 2, 2026 3:51am UTC

@voltcrash
voltcrash merged commit ab3442d into main Oct 2, 2026
3 checks passed
@voltcrash
voltcrash deleted the fix/image-optimizer-fallback branch October 2, 2026 03:56

This branch was successfully deployed

1 active deployment
Preview — 1d28a7b5 Deployed Oct 2, 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