Skip to content

404 images Astro local dev and Netlify adapter #175

@ashhitch

Description

@ashhitch

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions