File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -347,10 +347,11 @@ function createImageOptimizationBundle() {
347
347
// For SHARP_IGNORE_GLOBAL_LIBVIPS see: https://github.com/lovell/sharp/blob/main/docs/install.md#aws-lambda
348
348
349
349
const nodeOutputPath = path . resolve ( outputPath ) ;
350
+ const sharpVersion = process . env . SHARP_VERSION ?? "0.32.5" ;
350
351
351
352
//check if we are running in Windows environment then set env variables accordingly.
352
353
cp . execSync (
353
- `npm install --arch=arm64 --platform=linux --target=18 --libc=glibc --prefix="${ nodeOutputPath } " sharp@0.32.5 ` ,
354
+ `npm install --arch=arm64 --platform=linux --target=18 --libc=glibc --prefix="${ nodeOutputPath } " sharp@${ sharpVersion } ` ,
354
355
{
355
356
stdio : "inherit" ,
356
357
cwd : appPath ,
You can’t perform that action at this time.
0 commit comments