image icon indicating copy to clipboard operation
image copied to clipboard

Packaging environment

Open 1059431281 opened this issue 11 months ago • 1 comments

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.Image

1059431281 avatar Jan 10 '25 10:01 1059431281

This causes a 500 status error on the production environment, as the sharp module cannot be found.

1059431281 avatar Jan 10 '25 10:01 1059431281