-
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
Vercel: Predefined sizes should not use image.screens
#1180
Comments
This is a Vercel restriction; Some details here: https://vercel.com/docs/build-output-api/v3/configuration#images |
In this case it should use another config property because this property is for screen sizes and break points. Right now presets could be used for that or we need a new property like
|
sizes
does not work without predefining valid width in image.screens
image.screens
You can define screens like this: screens: {
400: 400
} |
This works but still I think the |
I am trying to simply resize an image:
This works fine on dev where
ipx
is used. Deployed to Vercel however it uses the provider'vercel'
it does not work and will print warnings in the console (only on dev):What I dont understand is why the vercel-provider is even making a check like this.
image.screens
not related to the image width, it is used for defining screen sizes and breakpoints to load different image widths. It makes no sense to restrict image resizing just to these screen size breakpoints.So I created a PR to remove this restriction: #1181
The text was updated successfully, but these errors were encountered: