Skip to content

Fix Vercel image URL fallback#3

Closed
burconsult wants to merge 3 commits into
mainfrom
codex/fix-unsupported-vercel-image-urls
Closed

Fix Vercel image URL fallback#3
burconsult wants to merge 3 commits into
mainfrom
codex/fix-unsupported-vercel-image-urls

Conversation

@burconsult

Copy link
Copy Markdown
Owner

Summary

  • Stop generating unsupported /_vercel/image URLs for the Astro/Vercel adapter and fall back to original asset URLs.
  • Omit responsive srcset attributes when the active image provider cannot actually transform URLs.
  • Add a guarded middleware compatibility redirect so stale local /_vercel/image?url=/images/... URLs resolve to the original asset while external redirect attempts remain blocked.

Validation

  • npm run test:run -- src/lib/services/__tests__/cdn-manager.test.ts src/lib/services/__tests__/media-manager.integration.test.ts src/lib/media/__tests__/vercel-image-redirect.test.ts src/lib/routing/__tests__/middleware-paths.test.ts
  • npm run build
  • node scripts/ci/check-architecture-map.mjs origin/main HEAD
  • Live production smoke: www.adastro.no article HTML emits /images/article_image_02.webp; stale optimizer URL redirects to the asset and returns 200; external redirect attempt returns 404.

Deployment

  • Production deployed to https://www.adastro.no via Vercel deployment dpl_4zE8dVTZkNTSHmAfd3gxQyExqa5P.

@vercel

vercel Bot commented Apr 14, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
adastrono Ready Ready Preview, Comment Apr 14, 2026 3:58pm

@netlify

netlify Bot commented Apr 14, 2026

Copy link
Copy Markdown

Deploy Preview for adastro ready!

Name Link
🔨 Latest commit b2222d5
🔍 Latest deploy log https://app.netlify.com/projects/adastro/deploys/69de642ea624650008438ec2
😎 Deploy Preview https://deploy-preview-3--adastro.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@burconsult burconsult closed this Apr 29, 2026
@burconsult
burconsult deleted the codex/fix-unsupported-vercel-image-urls branch April 29, 2026 06:34
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