Building 🤫🤫 | Software Engineer @FireblocksHQ | Loves to talk about Rust 🦀 / TypeScript / JavaScript / WebAssembly / Web3

Joined May 2014
Replying to @GamewithDave
Hands down one of the best adventure games ever
2
7
1,292
Next, add a bundling parameter to your Lambda definition which will set a loader to the .node file created by Yarn for the correct architecture and force the Docker to bundle:
1
48
Start by adding a .yarnrc.yml file to define for which Architectures should yarn install packages:
1
9
When deploying to Vercel make sure to add the copy:wasm script to the install stage.
41
Once everything is ready encode your canvas to a base64 encoded image and send it back. Big success 💰!
1
1
49
If you wish to draw an image, get its raw buffer with `readFile` first, then decode it to an Image object, and finally draw it on the canvas with `drawImage`:
1
12
Next, create a canvas and a context and go nuts!
1
11
Add a copy script to your package.json. If you wish to copy to a different location than static/wasm just change the folder on the script and on the route.ts above
1
19