From 212f5db6d36eb25df4ec32081ce6e4a12b7fc6d6 Mon Sep 17 00:00:00 2001 From: Asad <21283991+asaddon@users.noreply.github.com> Date: Tue, 31 Dec 2024 18:17:59 +0000 Subject: [PATCH] Small Fix --- puppeteer.config.cjs | 5 +++++ sources.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 puppeteer.config.cjs diff --git a/puppeteer.config.cjs b/puppeteer.config.cjs new file mode 100644 index 0000000..2737dd6 --- /dev/null +++ b/puppeteer.config.cjs @@ -0,0 +1,5 @@ +const { join } = require('path'); +/** +* @type {import("puppeteer").Configuration} +*/ +module.exports = {cacheDirectory: join(__dirname, '.cache', 'puppeteer')}; \ No newline at end of file diff --git a/sources.js b/sources.js index 16fce9a..b3f3249 100644 --- a/sources.js +++ b/sources.js @@ -77,7 +77,7 @@ const client = axios.create({ // Puppeteer login function to attach session to the global Axios client async function initializeClientWithSession() { const browser = await puppeteer.launch({ - executablePath: process.env.PUPPETEER_EXECUTABLE_PATH, + //executablePath: process.env.PUPPETEER_EXECUTABLE_PATH, headless: true, args: ['--no-sandbox', '--disable-setuid-sandbox'], });