Skip to content

Commit

Permalink
Small Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
asaddon committed Dec 31, 2024
1 parent 928cdcd commit 212f5db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions puppeteer.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const { join } = require('path');
/**
* @type {import("puppeteer").Configuration}
*/
module.exports = {cacheDirectory: join(__dirname, '.cache', 'puppeteer')};
2 changes: 1 addition & 1 deletion sources.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
});
Expand Down

0 comments on commit 212f5db

Please sign in to comment.