From 1d347ba5dc4c863991d374cda29efef6f82db80a Mon Sep 17 00:00:00 2001 From: Steven Date: Fri, 23 Jul 2021 10:07:09 -0400 Subject: [PATCH] Fix typo in error message (#27438) Fixes typo mentioned in https://github.com/vercel/next.js/pull/27346#discussion_r675477904 --- errors/manifest.json | 2 +- packages/next/server/image-optimizer.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/errors/manifest.json b/errors/manifest.json index 7948b55bc5e7d..09bc27b3a8e7e 100644 --- a/errors/manifest.json +++ b/errors/manifest.json @@ -428,7 +428,7 @@ "path": "/errors/page-data-collection-timeout.md" }, { - "titlle": "sharp-missing-in-production", + "title": "sharp-missing-in-production", "path": "/errors/sharp-missing-in-production.md" } ] diff --git a/packages/next/server/image-optimizer.ts b/packages/next/server/image-optimizer.ts index 5ded690e69cca..b76859f575f06 100644 --- a/packages/next/server/image-optimizer.ts +++ b/packages/next/server/image-optimizer.ts @@ -367,7 +367,7 @@ export async function imageOptimizer( if (shouldShowSharpWarning) { console.warn( chalk.yellow.bold('Warning: ') + - `For production Image Optimization with Next.js, the optional 'sharp' package is strongly recommended. Run 'yarn add sharp', and Next.js will use it automatically for image optimization.\n` + + `For production Image Optimization with Next.js, the optional 'sharp' package is strongly recommended. Run 'yarn add sharp', and Next.js will use it automatically for Image Optimization.\n` + 'Read more: https://nextjs.org/docs/messages/sharp-missing-in-production' ) shouldShowSharpWarning = false