From 0f865450b7467981eb02c20f0e57a0faf48a0fc2 Mon Sep 17 00:00:00 2001 From: Erik Kotsiuba Date: Tue, 26 Nov 2019 17:54:00 +0200 Subject: [PATCH 1/2] Updated troubleshooting.md with recommendation of using args for heroku --- docs/troubleshooting.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 09e367b2c4109..ed28ff069752a 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -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 pupeteer. You can achieve it by passing it as an argument to your `.launch()` call, like this `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 From 5078380c7d7f2f4936f1ee72a754d96b9bed41e1 Mon Sep 17 00:00:00 2001 From: Erik Kotsiuba Date: Tue, 26 Nov 2019 19:27:43 +0200 Subject: [PATCH 2/2] Update docs/troubleshooting.md Co-Authored-By: Mathias Bynens --- docs/troubleshooting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index ed28ff069752a..bebf9e98a3ee7 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -408,7 +408,7 @@ 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 pupeteer. You can achieve it by passing it as an argument to your `.launch()` call, like this `puppeteer.launch({args: ['--no-sandbox']});` +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.