Patrick Young
11/04/2021, 7:47 PMUnzip the packaged layer to this directory.
Does that mean copy whats in node_modules?thdxr
11/04/2021, 7:48 PMPatrick Young
11/04/2021, 7:48 PMthdxr
11/04/2021, 7:48 PMbundle.nodeModules: ["sharp"]
thdxr
11/04/2021, 7:48 PMJay
Jay
Patrick Young
11/04/2021, 7:57 PMThen head over to this repo and download the latest sharp-lambda-layer.zip from the releases — <https://github.com/Umkus/lambda-layer-sharp/releases>
Unzip that into the layers/sharp directory that we just created. Make sure that the path looks something like layers/sharp/nodejs/node_modules.
I'm going to just try to get this working and then try to get layers working. I will let you know if I run into anything or if the tutorial can be tweaked.Patrick Young
11/04/2021, 8:00 PMSomething went wrong installing the "sharp" module
Cannot find module '../build/Release/sharp-linux-x64.node'
So guessing I need this in the deploy script:
"npm install --platform=linux --arch=x64 sharp"
or... I saw a bunch of people had another script before the deploy to set this. Since I'm running this with Rushjs I'm not 100% sure how to do this... darn monorepoPatrick Young
11/04/2021, 8:00 PMPatrick Young
11/04/2021, 8:56 PMPatrick Young
11/04/2021, 8:57 PMJay