修复 puppeteer Chromium 启动失败
This commit is contained in:
parent
d31c09ace7
commit
fdd2936cec
|
@ -31,7 +31,7 @@
|
|||
"node-schedule": "^2.1.1",
|
||||
"node-xlsx": "^0.21.2",
|
||||
"pm2": "^5.3.0",
|
||||
"puppeteer": "^20.1.2",
|
||||
"puppeteer": "^20.2.0",
|
||||
"redis": "^4.6.6",
|
||||
"sequelize": "^6.31.1",
|
||||
"sqlite3": "^5.1.6",
|
||||
|
|
|
@ -10,7 +10,7 @@ chromiumPath:
|
|||
puppeteerWS:
|
||||
|
||||
# headless
|
||||
headless: true
|
||||
headless: "new"
|
||||
|
||||
# puppeteer启动args,注意args的--前缀
|
||||
args:
|
||||
|
|
|
@ -23,7 +23,7 @@ export default class PuppeteerRenderer {
|
|||
/** 截图次数 */
|
||||
this.renderNum = 0
|
||||
this.config = {
|
||||
headless: Data.def(config.headless, true),
|
||||
headless: Data.def(config.headless, "new"),
|
||||
args: Data.def(config.args, [
|
||||
'--disable-gpu',
|
||||
'--disable-setuid-sandbox',
|
||||
|
|
Loading…
Reference in New Issue