Open sinazh opened 4 months ago
set headless to true const browsers = await Promise.all( urls.map(() => puppeteer.launch({ args: [ "--disable-setuid-sandbox", "--no-sandbox", "--single-process", "--no-zygote", ], executablePath: process.env.NODE_ENV === "production" ? process.env.PUPPETEER_EXECUTABLE_PATH : puppeteer.executablePath(), headless: true, }) ) );
Can you tell me where this is?
its located in the index.js file
I have turned headless to true still not working . How can i do ?
Hi, I have a question. When running index.js using node, I get the error missing x server or $display error. Keep in mind that I am using puppeteer on Ubuntu 22 server and that Chrome and Firefox are installed.