fix: Data URL images with 'fill' are always triggering 'missing sizes' warning (#42030)
fixes https://github.com/vercel/next.js/issues/42006 this issue occurred because images with `data url` src start with `blob` and `data` will be mark as `unoptimized`, then its `sizes` will be assigned with `undefined`. I just skip the check for `data url` images, if there is any better solution, we can have a discuss here. ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [x] Make sure the linting passes by running `pnpm build && pnpm lint` - [x] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md) Co-authored-by:Steven <steven@ceriously.com>
Showing
Please
register
or
sign in
to comment