-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Astro 5.4 breaks custom Image Services #13335
Comments
|
I'm almost sure I wrote a README somewhere to explain that they're exported, not sure where though as I can't find it now. But yes, the files in that folder were purposely exported for other services to use! |
The docs suggest that custom image services should be based on the provided image services, hence why I assumed that all the properties used in those would be public API. They are also listed as exports in Astro’s I feel like I had also read about them in a README or the docs when I first built this service, but I can’t find any reference anymore either. |
@amxmln can you please test this preview? #13336 (comment) Let us know if it fixes your issue |
@ematipico thanks for looking at this so quickly! I can confirm that installing the preview package fixes the build, however, Vite now spits out the following warning, which didn’t happen before:
|
I think it's expected because On Monday we will release the patch, so the warning shouldn't be there. If there is, feel free to re-open the issue |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
After the upgrade to Astro 5.4, builds no longer work if they are using a custom image service which relied upon
isRemoteAllowed
because the export was moved to a different file.It used to be exported as part of the
astro/assets/utils
package, but now seems to reside under@astrojs/internal-helpers/remote
, which suggests it is no longer part of a public API.This is a breaking change (even though for a limited amount of users) and should at least be documented if it was intentional.
Thanks for keeping up the great work on Astro!
What's the expected result?
Custom image services should keep working without changes.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-txiuvwma?file=integrations/custom-image-service.js&on=stackblitz
Participation
The text was updated successfully, but these errors were encountered: