Skip to content

Support Astro Image Optimization #75

@Thodor12

Description

@Thodor12

When you build your project and you're using optimized images, Astro will use a dev url in the format of:

_image?href={path}&origWidth={number}&origHeight={number}&origFormat={image type}&w=300&f=webp

However, pagefind will use the finalized URL of the built image to keep in the pagefind data:

/_astro/{image name}.{random id}.{format}

This causes all images not to be shown when in dev, making it difficult to really tell what the final product is going to be, basically meaning you have to test using live builds.

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