Set headless=true

This commit is contained in:
Hongbo Wu 2022-05-14 10:47:15 +08:00
parent 80c14cd6ca
commit 745f55a843

View file

@ -75,7 +75,7 @@ const getBrowserPromise = (async () => {
],
defaultViewport: { height: 1080, width: 1920 },
executablePath: process.env.CHROMIUM_PATH ,
headless: !!process.env.LAUNCH_HEADLESS,
headless: true,
timeout: 0,
userDataDir: '/tmp/puppeteer',
});