Skip to content

Commit

Permalink
feat(render): add no-sandbox if path is given
Browse files Browse the repository at this point in the history
  • Loading branch information
thatkookooguy committed Nov 17, 2024
1 parent 673275c commit b8b3aa9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/image-maker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ export class KbHologram {
const browser = await puppeteer.launch({
headless: true,
timeout: 0,
executablePath: this.options.executablePath
executablePath: this.options.executablePath,
args: this.options.executablePath ?
['--no-sandbox', '--disable-setuid-sandbox'] :
[]
});
const page = await browser.newPage();
await page.setViewport({
Expand Down Expand Up @@ -122,7 +125,10 @@ export class KbHologram {
const browser = await puppeteer.launch({
headless: true,
timeout: 0,
executablePath: this.options.executablePath
executablePath: this.options.executablePath,
args: this.options.executablePath ?
['--no-sandbox', '--disable-setuid-sandbox'] :
[]
});
const page = await browser.newPage();
await page.setViewport({
Expand Down

0 comments on commit b8b3aa9

Please sign in to comment.