From c3d93b126c8cd90c4b0dc21a41256b73b2fab91b Mon Sep 17 00:00:00 2001 From: Steven Date: Wed, 22 May 2024 13:15:30 -0400 Subject: [PATCH] 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. --- packages/next/src/server/image-optimizer.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/next/src/server/image-optimizer.ts b/packages/next/src/server/image-optimizer.ts index ab92901af748b..7df920dc1965e 100644 --- a/packages/next/src/server/image-optimizer.ts +++ b/packages/next/src/server/image-optimizer.ts @@ -442,7 +442,6 @@ export async function optimizeImage({ quality: number width: number height?: number - nextConfigOutput?: 'standalone' | 'export' }): Promise { 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) {