[PR #2060] fix: add sharp package to fix sharp-missing-in-production warning #23402

Closed
opened 2026-02-21 20:21:01 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/2060

State: closed
Merged: Yes


  • Fixed the sharp-missing-in-production warning when running yarn build, by adding sharp package as runtime dependency to web module
#    Creating an optimized production build ...                                                               
#  ⚠ For production Image Optimization with Next.js, the optional 'sharp' package is strongly recommended. Ru
# n 'npm i sharp', and Next.js will use it automatically for Image Optimization.                             
# Read more: https://nextjs.org/docs/messages/sharp-missing-in-production  
**Original Pull Request:** https://github.com/langgenius/dify/pull/2060 **State:** closed **Merged:** Yes --- - Fixed the `sharp-missing-in-production ` warning when running `yarn build`, by adding `sharp` package as runtime dependency to web module ``` # Creating an optimized production build ... # ⚠ For production Image Optimization with Next.js, the optional 'sharp' package is strongly recommended. Ru # n 'npm i sharp', and Next.js will use it automatically for Image Optimization. # Read more: https://nextjs.org/docs/messages/sharp-missing-in-production ```
yindo added the pull-request label 2026-02-21 20:21:01 -05:00
yindo closed this issue 2026-02-21 20:21:01 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#23402