I’ve been struggling with this issue for a day or two now.
I’m using a regular Gatsby + Netlify setup, I’m using
netlify-lamda package to enable functions in development and production builds. Everything works as expected.
Issue is, I created a new function that is using a package called
node-canvas. From what I understand, the package has a pre-built binary called
canvas.node which is required in order to work.
I was wondering how can I include a binary using the
netlify-lambda package or using webpack? (using the
If anyone is willing to help, I will appreciate it a lot. If you need more information, I will be happy to update this message or setup a demo application to reproduce.