DEV Community

loading...

Discussion on: Running Puppeteer on Heroku Free Tier

Collapse
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

       "--no-sandbox",
        "--single-process",
        "--no-zygote"
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:)

Collapse
aurium profile image
Aurélio A. Heckert

--no-sandbox i believe it means all page related process in main thread.
peter.sh/experiments/chromium-comm...

--single-process means no parallelism for plugins and graphics.
peter.sh/experiments/chromium-comm...

--no-zygote no "main forker".
peter.sh/experiments/chromium-comm...

That all together enforces only one chromium process.