-
Notifications
You must be signed in to change notification settings - Fork 270
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
[nuxt3] Static image generation still results in 404 after latest update for certain images only #671
Comments
Static generation does not seem to be working at all when using Nuxt Picture |
@jamesxu123 Does this only happen when multiple formatters are applied (e.g. width, height, quality, etc)? If so just made #673 to hopefully solve this issue. And #674 possibly for the second one. |
On my end, it doesn't work at all, no static image is built. Am I missing something? My env:
I use as well (normally unrelated):
My
I use And they are rendered as: <img src="/_ipx/_/image-name.png"> and <picture>
<source
type="image/webp"
sizes="(max-width: 320px) 320px, (max-width: 640px) 640px, (max-width: 768px) 768px, (max-width: 1024px) 1024px, (max-width: 1280px) 1280px, (max-width: 1536px) 1536px, 1536px"
srcset="/_ipx/w_320,f_webp/image-name.png 320w, /_ipx/w_640,f_webp/image-name.png 640w, /_ipx/w_768,f_webp/image-name.png 768w, /_ipx/w_1024,f_webp/image-name.png 1024w, /_ipx/w_1280,f_webp/image-name.png 1280w, /_ipx/w_1536,f_webp/image-name.png 1536w, /_ipx/w_1536,f_webp/image-name.png 1536w">
<img
src="/_ipx/w_1536,f_png/image-name.png"
sizes="(max-width: 320px) 320px, (max-width: 640px) 640px, (max-width: 768px) 768px, (max-width: 1024px) 1024px, (max-width: 1280px) 1280px, (max-width: 1536px) 1536px, 1536px"
srcset="/_ipx/w_320,f_png/image-name.png 320w, /_ipx/w_640,f_png/image-name.png 640w, /_ipx/w_768,f_png/image-name.png 768w, /_ipx/w_1024,f_png/image-name.png 1024w, /_ipx/w_1280,f_png/image-name.png 1280w, /_ipx/w_1536,f_png/image-name.png 1536w, /_ipx/w_1536,f_png/image-name.png 1536w">
</picture> But in my By the way, I get the following error during prerender:
I don't know if that's expected. |
Same problem no |
Hi there! Sorry for checking this too late. Some improvements are landed via #725 to v1 edge which i believe should solve issues related to prerendering. Please try upgrading nuxt+nitro+image and let me know with a new issue/reproduction if still some images are not properly prerendered. |
For some reason images in certain routes are not pre-rendered but not others. This is after #614.
I have found that Nuxt Images with
width
andheight
set do not get rendered statically. E.g.<nuxt-img format="avif" class="img-fluid" width="1920" height="1000" :src="imgPath" alt=""></nuxt-img>
does not, but<nuxt-img format="avif" class="img-fluid" :src="imgPath" alt=""></nuxt-img>
does.The text was updated successfully, but these errors were encountered: