I'm trying to get sharp into one of my serverless functions but getting an error the module is not found.
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'sharp' imported from /var/task/app/api/optimize-image.js
I've included the below into my vercel.json
{ "installCommand": "npm install --arch=x64 --platform=linux sharp"}and below are my imports
import sharp from "sharp";import fetch from "node-fetch";