Today I deployed a barebones Next.js 15.2.0 app to Vercel and found this warning message in the logs:
Ignored build scripts: sharp. Run "pnpm approve-builds" to pick which dependencies should be allowed to run scripts. Ideally I don't want to get any warning messages during build and deployment.
And from memory, I wasn't getting this warning message in the past.
Apparently, "this warning is related to Vercel's security feature that prevents potentially risky build scripts from running automatically during deployment."
How do you deal with this warning message in your builds? How can I make it go away?
Thanks.