refactor(print): chrimoum is now a single process on each instance with no child processes
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2021-10-15 16:15:00 +02:00
parent c4c1aa929a
commit 1ba2a924e6
1 changed files with 6 additions and 1 deletions

View File

@ -58,7 +58,12 @@ module.exports = async app => {
async function launchBrowser() {
config.browser = await puppeteer.launch({
headless: true,
args: ['--no-sandbox', '--disable-setuid-sandbox']
args: [
'--no-sandbox',
'--disable-setuid-sandbox',
'--single-process',
'--no-zygote'
]
});
config.browser.on('disconnected', launchBrowser);