Skip to content

Commit c3d93b1

Browse files
authored
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 #63321 so now we can remove the unused parameter.
1 parent 5c9ea1c commit c3d93b1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/next/src/server/image-optimizer.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,6 @@ export async function optimizeImage({
442442
quality: number
443443
width: number
444444
height?: number
445-
nextConfigOutput?: 'standalone' | 'export'
446445
}): Promise<Buffer> {
447446
const sharp = getSharp()
448447
const transformer = sharp(buffer).timeout({ seconds: 7 }).rotate()
@@ -554,7 +553,6 @@ export async function imageOptimizer(
554553
'href' | 'width' | 'quality' | 'mimeType'
555554
>,
556555
nextConfig: {
557-
output: NextConfigComplete['output']
558556
images: Pick<
559557
NextConfigComplete['images'],
560558
'dangerouslyAllowSVG' | 'minimumCacheTTL'
@@ -626,7 +624,6 @@ export async function imageOptimizer(
626624
contentType,
627625
quality,
628626
width,
629-
nextConfigOutput: nextConfig.output,
630627
})
631628
if (optimizedBuffer) {
632629
if (isDev && width <= BLUR_IMG_SIZE && quality === BLUR_QUALITY) {

0 commit comments

Comments
 (0)