This is an implementation for vanilla three.js projects. Check out the documented source code to see how it works and copy any relevant code. The functionality is already built into threepipe and ...
This project contains an AWS Lambda function that renders HTML content to an image using Puppeteer and the @sparticuz/chromium package. The project is deployed using AWS CDK.