Skip to content
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

Support Astro Image Optimization #75

Open
Thodor12 opened this issue Mar 29, 2024 · 0 comments
Open

Support Astro Image Optimization #75

Thodor12 opened this issue Mar 29, 2024 · 0 comments

Comments

@Thodor12
Copy link

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.

BadMannersXYZ added a commit to BadMannersXYZ/astro-pagefind that referenced this issue Apr 5, 2024
BadMannersXYZ added a commit to BadMannersXYZ/astro-pagefind that referenced this issue Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant