Skip to content

Instantly share code, notes, and snippets.

@asamountain
Created January 4, 2020 09:36
Show Gist options
  • Select an option

  • Save asamountain/e18a78265227eca3d67cb8d79422dc80 to your computer and use it in GitHub Desktop.

Select an option

Save asamountain/e18a78265227eca3d67cb8d79422dc80 to your computer and use it in GitHub Desktop.
puppeteer-cluster for heroku deploy
const cluster = await Cluster.launch({
concurrency: Cluster.CONCURRENCY_CONTEXT,
maxConcurrency: 3,
puppeteerOptions: {
headless: true,
args: ['--no-sandbox']
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment