chore(next/image): remove unused output parameter (#66083)

This parameter was previously used for a warning message, but we no
longer print that warning since
https://github.com/vercel/next.js/pull/63321 so now we can remove the
unused parameter.
This commit is contained in:
Steven
2024-05-22 12:15:30 -05:00
committed by GitHub
parent 5c9ea1c575
commit c3d93b126c
@@ -442,7 +442,6 @@ export async function optimizeImage({
quality: number
width: number
height?: number
nextConfigOutput?: 'standalone' | 'export'
}): Promise<Buffer> {
const sharp = getSharp()
const transformer = sharp(buffer).timeout({ seconds: 7 }).rotate()
@@ -554,7 +553,6 @@ export async function imageOptimizer(
'href' | 'width' | 'quality' | 'mimeType'
>,
nextConfig: {
output: NextConfigComplete['output']
images: Pick<
NextConfigComplete['images'],
'dangerouslyAllowSVG' | 'minimumCacheTTL'
@@ -626,7 +624,6 @@ export async function imageOptimizer(
contentType,
quality,
width,
nextConfigOutput: nextConfig.output,
})
if (optimizedBuffer) {
if (isDev && width <= BLUR_IMG_SIZE && quality === BLUR_QUALITY) {