mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
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.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user