Skip to content

Conversation

@Lofty-Brambles
Copy link
Contributor

Fixes incorrect URL generation for SVGs with imageCDN enabled, for the netlify adapter. Fixes #13796

Changes

  • Adds a check for SVG images in astro/packages/integrations/netlify/src/image-service.ts to handle the return of the original src path for them.

Testing

Docs

It's an internal bug fix for the netlify adapter and should not need any documentation.

@changeset-bot
Copy link

changeset-bot bot commented May 20, 2025

🦋 Changeset detected

Latest commit: ed2388a

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: integration Related to any renderer integration (scope) label May 20, 2025
Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@ematipico ematipico merged commit 9371a67 into withastro:main May 21, 2025
24 of 26 checks passed
@astrobot-houston astrobot-houston mentioned this pull request May 21, 2025
openscript pushed a commit to openscript/astro that referenced this pull request Sep 12, 2025
…thastro#13830)

* fix: handle svgs separately by fetching original source path

* feat: add a changeset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: integration Related to any renderer integration (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Netlify Adapter + imageCDN breaking .SVG since Astro 5.7

2 participants