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({
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) {
......
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