DEV Community

Discussion on: Optimizing and Deploying Puppeteer Web Scraper

Collapse
 
apanjwani0 profile image
Aman Panjwani

No, I thought maybe dockerizing my project would solve the issue (that way we can also run headless:false), but never continued with the project.
Do let me know if it works for you, or you find any other solution.

Thread Thread
 
alireza4130 profile image
Alireza

await page.goto(BASE_URL, { waitUntil: "networkidle0" })

waitUntil: "networkidle0" is nessary for this issue and set the headless to new