Skip to content

Commit

Permalink
Merge pull request #9 from Hector68/master
Browse files Browse the repository at this point in the history
Run puppeteer with --no-sandbox, fixes #6
  • Loading branch information
Mateusz Krzeszowiak authored Apr 9, 2020
2 parents 74d9446 + 6aebd5d commit 7f203a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const extractCommonBundle = require('./generate/extractCommonBundle');
module.exports = async (generationConfig) => {
const browser = await puppeteer.launch({
headless: !generationConfig.debug,
args: ['--disable-dev-shm-usage'],
args: ['--no-sandbox', '--disable-dev-shm-usage'],
defaultViewport: { width: 412, height: 732 },
});
const browserContext = await browser.createIncognitoBrowserContext();
Expand Down

0 comments on commit 7f203a8

Please sign in to comment.