first commit

This commit is contained in:
2024-05-16 16:11:40 +02:00
commit fe9a8e2b20
32 changed files with 8427 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
module.exports = (puppeteer) => {
return async (req, res, next) => {
const browser = await puppeteer.launch({
executablePath: '/usr/bin/google-chrome',
args: ['--no-sandbox', '--disable-setuid-sandbox', '--disable-gpu'],
ignoreDefaultArgs: ['--disable-extensions'],
headless: 'new'
});
req.browser = browser;
next();
}
}