Skip to content

Commit

Permalink
docs(troubleshooting): recommend using args for heroku (#5197)
Browse files Browse the repository at this point in the history
Co-Authored-By: Mathias Bynens <mathias@qiwi.be>
  • Loading branch information
eko24ive and mathiasbynens committed Nov 27, 2019
1 parent 35d5ba5 commit 6cc98a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/troubleshooting.md
Expand Up @@ -408,6 +408,8 @@ Running Puppeteer on Heroku requires some additional dependencies that aren't in

The url for the buildpack is https://github.com/jontewks/puppeteer-heroku-buildpack

Ensure that you're using `'--no-sandbox'` mode when launching Puppeteer. This can be done by passing it as an argument to your `.launch()` call: `puppeteer.launch({ args: ['--no-sandbox'] });`.

When you click add buildpack, simply paste that url into the input, and click save. On the next deploy, your app will also install the dependencies that Puppeteer needs to run.

If you need to render Chinese, Japanese, or Korean characters you may need to use a buildpack with additional font files like https://github.com/CoffeeAndCode/puppeteer-heroku-buildpack
Expand Down

0 comments on commit 6cc98a7

Please sign in to comment.