DEV Community

Discussion on: Generate your social share images automatically in expressjs.

Collapse
 
getaclue profile image
Alex Kluew

by the way if you want to deploy this on heroku, you need to do the following fix : stackoverflow.com/a/55090914

which involves :

  1. adding a build pack
  2. changed the way puppeteer is instantiated :
const browser = await puppeteer.launch({
      args: ['--no-sandbox', '--disable-setuid-sandbox']
});

vs.

const browser = await puppeteer.launch();

Cheers,
Alex