diff --git a/dist/index.js b/dist/index.js index 5371d20..438099d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -118427,8 +118427,11 @@ async function generatePdf() { */ console.log(`Starting PDF generation with ${name} name`) const browser = await chromium.puppeteer.launch({ - args: ['--no-sandbox', '--disable-setuid-sandbox'], - + args: chromium.args, + defaultViewport: chromium.defaultViewport, + executablePath: await chromium.executablePath, + headless: chromium.headless, + ignoreHTTPSErrors: true }); const page = await browser.newPage(); diff --git a/src/index.js b/src/index.js index 40eed2f..966b512 100644 --- a/src/index.js +++ b/src/index.js @@ -173,8 +173,11 @@ async function generatePdf() { */ console.log(`Starting PDF generation with ${name} name`) const browser = await chromium.puppeteer.launch({ - args: ['--no-sandbox', '--disable-setuid-sandbox'], - + args: chromium.args, + defaultViewport: chromium.defaultViewport, + executablePath: await chromium.executablePath, + headless: chromium.headless, + ignoreHTTPSErrors: true }); const page = await browser.newPage();