fix(core): update
This commit is contained in:
parent
5c0b8c4df0
commit
f97866fe82
@ -23,7 +23,13 @@ export class SmartPdf {
|
|||||||
async start() {
|
async start() {
|
||||||
// setup puppeteer
|
// setup puppeteer
|
||||||
if (!this.headlessBrowser) {
|
if (!this.headlessBrowser) {
|
||||||
this.headlessBrowser = await plugins.puppeteer.launch();
|
let chromeArgs: string[] = [];
|
||||||
|
if(process.env.CI) {
|
||||||
|
chromeArgs = chromeArgs.concat(['--no-sandbox', '--disable-setuid-sandbox'])
|
||||||
|
}
|
||||||
|
this.headlessBrowser = await plugins.puppeteer.launch({
|
||||||
|
args: chromeArgs
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
this.externalBrowser = true;
|
this.externalBrowser = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user