I previously wrote a post on how to generate OpenGraph images with Netlify on-demand builders.
Kevin tried it out but was frustrated that it was tough to test locally.
Here's how to develop on your local machine:
brew install --cask chromium
npm install netlify-cli -g
executablePathin the call to
executablePath: process.env.CHROMIUM_PATH || (await chromium.executablePath),
CHROMIUM_PATH=/usr/local/bin/chromium netlify devin your terminal
Visit http://localhost:8888/.netlify/functions/og to see a generated image
Enjoy your generated image