@futuregerald
I have similar issue. I am using ffpmpeg-static(ffmpeg-static - npm) and I guess I also need to zip it.
I looked around for examples or an article/tutorial or a boilerplate which shows how to use zip-it-and-ship-it, but could not find any.
Would appreciate your help/guidance on this. Thanks in advance.
Note: I see from my build notes that zip is already in action! I use cloudinary.
11:07:07 AM: Prepping functions with zip-it-and-ship-it 0.3.1
11:07:13 AM: [ { path: ‘/tmp/zisi-5dd773d407f7170008275abd/cloudinaryConfig.zip’,
11:07:13 AM: runtime: ‘js’ },
So I guess I am close.
More details:
“scripts” from package.json:
“scripts”: {
“prebuild”: "npm i @ffmpeg-installer/linux-x64 ",
“build”: "netlify-lambda build express ",
“lambda-build”: “netlify-lambda build express”,
“start”: “nodemon -r esm server-local.js -e ./env”
},
“dependencies”: {
“@ffmpeg-installer/ffmpeg”: “^1.0.20”,
“@ffprobe-installer/ffprobe”: “^1.0.12”,
“cloudinary”: “^1.16.0”,
“connect-busboy”: “0.0.2”,
“cors”: “^2.8.5”,
“datauri”: “^2.0.0”,
“dotenv”: “^8.2.0”,
“esm”: “^3.2.25”,
“ffmpeg-static”: “^2.7.0”,
“ffprobe-static”: “^3.0.0”,
“fluent-ffmpeg”: “^2.1.2”,
“multer”: “^1.4.2”,
“promisify”: “0.0.3”
},
“devDependencies”: {
“body-parser”: “^1.19.0”,
“express”: “^4.17.1”,
“netlify-lambda”: “^1.6.3”,
“nodemon”: “^1.19.2”,
“serverless-http”: “^2.3.0”
}
Boilerplate used:
netlify.toml
[build]
command = “npm install && npm run build”
functions = “functions”
[build.environment]
FLUENTFFMPEG_COV = “”