Skip to content

Commit

Permalink
fix : pdf error
Browse files Browse the repository at this point in the history
  • Loading branch information
lopahn2 committed Oct 25, 2023
1 parent f949c16 commit a935d6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/funcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export const encodeImageToBase64 = (imagePath) => {
export const contractPdfController = async (html, fileName, email) => {
// Create a browser instance
const browser = await puppeteer.launch({
headless: "new",
headless: isHeadless,
protocolTimeout: 60000, // 이건 다른 에러때문에 넣어놓은 옵션
args: ["--no-sandbox", "--disable-setuid-sandbox"],
});
// Create a new page
Expand Down

0 comments on commit a935d6c

Please sign in to comment.