Skip to content

Commit 4256fc7

Browse files
committed
Troubleshooting puppeteer
1 parent 1739d87 commit 4256fc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/formats/pdf.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export async function convertToPdf(
3939
`\n\n${printCss}\n\n</style>`
4040
);
4141

42-
const browser = await puppeteer.launch({ headless: "new" });
42+
const browser = await puppeteer.launch({ headless: "shell", args: ["--no-sandbox"] });
4343
const page = await browser.newPage();
4444
await page.setContent(styledHtml, { waitUntil: "domcontentloaded" });
4545
await page.pdf({

0 commit comments

Comments
 (0)