impossible to get srcset
working when using Image Optimization with @astrojs/vercel
?
#10623
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
feat: assets
Related to the Assets feature (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Hello 👋
First, I don't know if this is a bug or a misunderstanding of the documentation.
What I am trying to achieve is to get the image optimized depending of the screen size (exactly how
next/image
does). So I am pretty satisfied as soon as I use built-in image optimization. As you can see below I get all mysrcset
👍However, if I uncomment the configuration around vercel adapter, I don't see anymore these optimizations (even using sharp). And even when it's live.
Here is an extract of the HTML
Please note that here is a extract of my production project which use a distant image. However, same problem happens when I use local image.
What's the expected result?
Having the same
srcset
as using "native" image optimization.Link to Minimal Reproducible Example
https://stackblitz.com/~/github.com/anthonyhexium/withastro-astro-nrkwdl
Participation
The text was updated successfully, but these errors were encountered: