Hivekind / hivekind.com

0 stars 0 forks source link

Next.js suggests to use `sharp` package for Image Optimization #150

Closed shuwnyuantee closed 3 weeks ago

shuwnyuantee commented 3 weeks ago

Running npm run build, we see this suggestion from Next.js:

⚠ For production Image Optimization with Next.js, the optional 'sharp' package is strongly recommended. Run 'npm i sharp', and Next.js will use it automatically for Image Optimization.
Read more: https://nextjs.org/docs/messages/sharp-missing-in-production
parasquid commented 3 weeks ago

@shuwnyuantee i can't seem to find this message in the build logs:

maybe this only happens on local? in which case you probably would need to install sharp dependencies

let me know if i somehow missed the location of this message

shuwnyuantee commented 3 weeks ago

Running npm run build again today, and the message is no longer there. So we are closing this ticket with won't fix.