Unverified Commit c3d93b12 authored by Steven's avatar Steven Committed by GitHub

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.
parent 5c9ea1c5
...@@ -442,7 +442,6 @@ export async function optimizeImage({ ...@@ -442,7 +442,6 @@ export async function optimizeImage({
quality: number quality: number
width: number width: number
height?: number height?: number
nextConfigOutput?: 'standalone' | 'export'
}): Promise<Buffer> { }): Promise<Buffer> {
const sharp = getSharp() const sharp = getSharp()
const transformer = sharp(buffer).timeout({ seconds: 7 }).rotate() const transformer = sharp(buffer).timeout({ seconds: 7 }).rotate()
...@@ -554,7 +553,6 @@ export async function imageOptimizer( ...@@ -554,7 +553,6 @@ export async function imageOptimizer(
'href' | 'width' | 'quality' | 'mimeType' 'href' | 'width' | 'quality' | 'mimeType'
>, >,
nextConfig: { nextConfig: {
output: NextConfigComplete['output']
images: Pick< images: Pick<
NextConfigComplete['images'], NextConfigComplete['images'],
'dangerouslyAllowSVG' | 'minimumCacheTTL' 'dangerouslyAllowSVG' | 'minimumCacheTTL'
...@@ -626,7 +624,6 @@ export async function imageOptimizer( ...@@ -626,7 +624,6 @@ export async function imageOptimizer(
contentType, contentType,
quality, quality,
width, width,
nextConfigOutput: nextConfig.output,
}) })
if (optimizedBuffer) { if (optimizedBuffer) {
if (isDev && width <= BLUR_IMG_SIZE && quality === BLUR_QUALITY) { if (isDev && width <= BLUR_IMG_SIZE && quality === BLUR_QUALITY) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment