Skip to content

Commit

Permalink
chore(next/image): remove unused output parameter (#66083)
Browse files Browse the repository at this point in the history
This parameter was previously used for a warning message, but we no
longer print that warning since
#63321 so now we can remove the
unused parameter.
  • Loading branch information
styfle committed May 22, 2024
1 parent 5c9ea1c commit c3d93b1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/next/src/server/image-optimizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -554,7 +553,6 @@ export async function imageOptimizer(
'href' | 'width' | 'quality' | 'mimeType'
>,
nextConfig: {
output: NextConfigComplete['output']
images: Pick<
NextConfigComplete['images'],
'dangerouslyAllowSVG' | 'minimumCacheTTL'
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit c3d93b1

Please sign in to comment.