Skip to content

Commit

Permalink
fix: --no-sandbox to generate PNG from sequence diagram
Browse files Browse the repository at this point in the history
This is an inherently safe operation anyway
  • Loading branch information
kgilpin committed Jan 9, 2025
1 parent 0dbb5fe commit ca372b2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/cli/src/cmds/sequenceDiagram/browserRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ export default class BrowserRenderer {
const puppeteer = require('puppeteer');

if (verbose()) console.warn(`Preparing browser for PNG rendering`);
this._browser = await puppeteer.launch({ timeout: 120 * 1000, headless: !this.showBrowser });
this._browser = await puppeteer.launch({
timeout: 120 * 1000,
headless: !this.showBrowser,
args: ['--no-sandbox'],
});
}
}

0 comments on commit ca372b2

Please sign in to comment.