unpic icon indicating copy to clipboard operation
unpic copied to clipboard

404 images Astro local dev and Netlify adapter

Open ashhitch opened this issue 5 months ago • 0 comments

When using the newer Netlify adapter in Astro it uses the local image CDN, however if you have the trailingSlash set to always it will only work with image urls with the trailing slash. e.g .netlify/images/?w=1080&fit=cover&u...

however in unpic the url is hardcoded without it .netlify/images

https://github.com/ascorbic/unpic/blob/main/src/providers/netlify.ts#L89

Maybe the best solution is to allow the endpoint to be set like in the Astro provider?

Happy to put a PR together

ashhitch avatar Jul 29 '25 15:07 ashhitch