image
image copied to clipboard
Packaging environment
Sorry to bother you"
When I install @nuxt/image locally, it generates both ipx and sharp. However, I noticed that within sharp, it generates the sharp-darwin-arm64v8.node package based on the environment, but my deployment environment is Linux. Therefore, when I package it, it attempts to look for the linux-x64 package. I'm not sure how to ensure that it packages according to the target deployment environment.
This causes a 500 status error on the production environment, as the sharp module cannot be found.