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 authored and dustinbyrne committed Jan 13, 2025
1 parent 2489694 commit d7a4c99
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 d7a4c99

Please sign in to comment.