Skip to content

Commit

Permalink
Shorten message
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle committed Aug 10, 2021
1 parent a10ed0f commit f8cbee5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/next/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ export default async function build(
require(process.env.NEXT_SHARP_PATH || 'sharp')
} catch (e) {
Log.warn(
'Detected `next/image` usage without `sharp` package. Please run `yarn add sharp`. Read more: https://nextjs.org/docs/messages/sharp-missing-in-production'
'Detected `next/image` usage without `sharp`. https://nextjs.org/docs/messages/sharp-missing-in-production'
)
}
}
Expand Down
3 changes: 1 addition & 2 deletions test/integration/image-optimizer/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ let nextOutput
let appPort
let app
const sharpRuntimeWarning = `For production Image Optimization with Next.js, the optional 'sharp' package is strongly recommended`
const sharpBuildWarning =
'Detected `next/image` usage without `sharp` package. Please run `yarn add sharp`.'
const sharpBuildWarning = 'Detected `next/image` usage without `sharp`.'

async function fsToJson(dir, output = {}) {
const files = await fs.readdir(dir)
Expand Down

0 comments on commit f8cbee5

Please sign in to comment.