Use the framework Image component with srcset and AVIF/WebP so each device downloads an appropriately sized, well-compressed image.
Why This Matters
Images are typically the heaviest bytes on a page; oversized formats directly inflate LCP and bandwidth.
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and dozens more. Get actionable feedback before code ships.