Quick update: I did manage to get through the steps in the solution, thank you.
I used this in my toml:
[build] command = "cp ./libx86/* node_modules/canvas/build/Release/"
However I’m still hitting an error, in my deploy if this makes any sense. I’ve tried to manually add the libz.so.1, but so far no luck. @Plotzes what did you do to make it work?
Is this perhaps Node version specific?
Error below, thanks!
7:59:28 PM: 2021-03-07T00:59:28.087Z undefined ERROR Uncaught Exception {"errorType":"Error","errorMessage":"/lib64/libz.so.1: version
ZLIB_1.2.9’ not found (required by /var/task/src/node_modules/canvas/build/Release/libpng16.so.16)",“stack”:["Error: /lib64/libz.so.1: version ZLIB_1.2.9' not found (required by /var/task/src/node_modules/canvas/build/Release/libpng16.so.16)"," at Object.Module._extensions..node (internal/modules/cjs/loader.js:1057:18)"," at Module.load (internal/modules/cjs/loader.js:863:32)"," at Function.Module._load (internal/modules/cjs/loader.js:708:14)"," at Module.require (internal/modules/cjs/loader.js:887:19)"," at require (internal/modules/cjs/helpers.js:74:18)"," at Object.<anonymous> (/var/task/src/node_modules/canvas/lib/bindings.js:3:18)"," at Module._compile (internal/modules/cjs/loader.js:999:30)"," at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)"," at Module.load (internal/modules/cjs/loader.js:863:32)"," at Function.Module._load (internal/modules/cjs/loader.js:708:14)"]}