updated puppeteer launch config

This commit is contained in:
Donald Pipowitch 2019-02-05 09:30:21 +01:00 committed by GitHub
parent cf6e494473
commit 39cf6404e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,7 +90,7 @@ export const imageSnapshot = (customConfig = {}) => {
} else {
// add some options "no-sandbox" to make it work properly on some Linux systems as proposed here: https://github.com/Googlechrome/puppeteer/issues/290#issuecomment-322851507
browser = await puppeteer.launch({
args: ['--no-sandbox ', '--disable-setuid-sandbox'],
args: ['--no-sandbox ', '--disable-setuid-sandbox', '--disable-dev-shm-usage'],
executablePath: chromeExecutablePath,
});
}