DEV Community


Discussion on: Running Puppeteer on Heroku Free Tier

ziv profile image
zivka Author

So regarding headless: true that's because it's running on a Linux without GUI,
defaultViewport: null is related to the width and height, it's not mandatory
--incognito was for my use(in order to start without any cookies and etc.
and regarding the last three args

Enter fullscreen mode Exit fullscreen mode

I'm not really sure, but that worked for me after a couple of tries...
Not sure what is running in Heroku that made this configuration worked for me:)

aurium profile image
Aurélio A. Heckert

--no-sandbox i believe it means all page related process in main thread.

--single-process means no parallelism for plugins and graphics.

--no-zygote no "main forker".

That all together enforces only one chromium process.