You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the srcset of the <source> tag, the following sizes are used [640, 750, 828, 1080, 1200, 1920, 2048, 3840] instead of [300, 430, 600, 768, 1024, 1536, 2048, 2560] as set in next.config.js. And the image files are only generated with the following sizes [300, 430, 600, 768, 1024, 1536, 2048, 2560] so it causes a 404 error.
Describe the bug
When using the picture component, if we set custom deviceSizes, the sizes used in the <source> tag are still the default sizes.
To Reproduce
Add custom deviceSizes in next.config.js
Use the picture component
The result is the following
In the srcset of the <source> tag, the following sizes are used
[640, 750, 828, 1080, 1200, 1920, 2048, 3840]
instead of[300, 430, 600, 768, 1024, 1536, 2048, 2560]
as set in next.config.js. And the image files are only generated with the following sizes[300, 430, 600, 768, 1024, 1536, 2048, 2560]
so it causes a 404 error.Expected behavior
Thank you for the library !
The text was updated successfully, but these errors were encountered: