79137476

Date: 2024-10-29 13:46:52
Score: 2
Natty:
Report link

I decided to use const chromium = require("chromium");

// Use Puppeteer to generate the PDF from HTML
  const browser = await puppeteer.launch({
    args: [
      "--no-sandbox",
      "--disable-setuid-sandbox",
      "--disable-dev-shm-usage",
      "--single-process",
      "--no-zygote",
    ],
    executablePath: chromium.path,
  });

https://www.npmjs.com/package/chromium

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Azzpr