Skip to content

Commit

Permalink
fix: add args to puppeteer to make pdf generation work in docker (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
derberg authored Oct 30, 2020
1 parent 1ce483c commit 8a97089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/generatePdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async function generatePdf(generator) {
//all actions of this hook depend on parameters passed by the user, if non are provided we should just stop the hook
if (!parameters || parameters.pdf !== 'true') return;

const browser = await puppeteer.launch();
const browser = await puppeteer.launch({args: ['--no-sandbox', '--disable-setuid-sandbox']});
const page = await browser.newPage();

await page.goto(`file://${path.join(targetDir, 'index.html')}`, { waitUntil: 'networkidle0' });
Expand Down

0 comments on commit 8a97089

Please sign in to comment.