AdonisJS Scenarios #3.0

Generating Dynamic OG Images with AdonisJS & Puppeteer

In This Lesson

We'll learn how to generate dynamic Open Graph (OG) images using AdonisJS and Puppeteer. We'll also add rate limiting to limit the number of OG images being generated at once and discuss some things to watch out for.

Created by
@tomgobich
Published

Disable Dev SHM Usage

Use --disable-dev-shm-usage for production to use a temporary directory instead of /dev/shm if you run into memory issues. More info can be found in the issue introducing this flag.

Puppeteer Dependencies

When deploying, Puppeteer will require certain dependencies be installed. Due to the slim OS install most boxes operate on, some of these are bound to be missing. You can find the full list on Puppeteer's troubleshooting page. It's also recommended to set up a sandbox so the Puppeteer browser instances are restricted.

Join the Discussion 0 comments

Create a free account to join in on the discussion
robot comment bubble

Be the first to comment!