-
Notifications
You must be signed in to change notification settings - Fork 23
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
Using nuxt-image
module
#30
Comments
CLS comparison between CSS aspect-ratio and nuxt-image aspect-ratioPR: #31 Before: After: FYI: the CLS has regressed a little and we can see the layout shifting with the naked eyes too. |
@addyosmani @anton-karlovskiy Would you please add my email to vercel team? (pyapar@gmail.com or pooya@nuxtjs.com) BTW layout shift until using proper cloud resizer by image module update is expected since tmdb possible sizes are not exactly the ones we want. |
@addyosmani The local build is working as expected but fails on Vercel deployment. |
@addyosmani Could you please add @pi0 to the Vercel team so that we can get some help of the current Vercel broken issue from @pi0? Thank you. @pi0 Regarding the layout shift, the CLS was 0 when we used the CSS aspect-ratio but after removing the CSS aspect-ratio, the CLS became 0.013. In the both cases, we used the same size TMDB images. |
@anton-karlovskiy Likely will be fixed with |
@danielroe Thank you very much. |
Docs are here with snippet: https://github.com/nuxt/vercel-builder#serverfiles Just add the file/folder it's complaining about. {
"builds": [
{
"src": "nuxt.config.js",
"use": "@nuxtjs/vercel-builder",
"config": {
"serverFiles": ["utils/**"]
}
}
]
} |
@danielroe It's working. Thank you! cc @addyosmani |
Is |
@anton-karlovskiy I think that's a good idea, and that it should be integrated into nuxt/image. Individual providers could register their own preconnects, etc. Not sure if it's on the roadmap, but I'll raise an issue on that repo: nuxt/image#178 |
@pi0
I might be wrong but I guess there's a bug in using modifiers like so:
Could you please review the following scenarios?
When we set width and height directly as props, it seems to work as expected (like so).
By taking this workaround d66ae7a, I managed to fix those broken images.
The text was updated successfully, but these errors were encountered: