From 7e224521b087d34f466c06406ce505a1314e7d8c Mon Sep 17 00:00:00 2001 From: Steven Date: Wed, 20 Nov 2024 14:11:55 -0500 Subject: [PATCH] fix(next/image): improve svg heuristic for unoptimized (#72970) The `` component doesn't optimize SVG images since they are vector images and can already scale up and down to any width. Therefore, the component will try to detect SVG images based on the file name to avoid sending them to the Image Optimization API at all. This is because the default behavior of the Image Optimization API is to error for SVG images due to the security implications of `` with nested `