Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packaging environment #1667

Open
1059431281 opened this issue Jan 10, 2025 · 1 comment
Open

Packaging environment #1667

1059431281 opened this issue Jan 10, 2025 · 1 comment

Comments

@1059431281
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant