mirror of
https://github.com/Lissy93/web-check.git
synced 2025-02-20 12:20:51 +01:00
Merge pull request #51 from t3chn0m4g3/master
Allow for screenshot within Docker
This commit is contained in:
commit
ad57aaa7f8
@ -21,7 +21,7 @@ const handler = async (targetUrl) => {
|
||||
let browser = null;
|
||||
try {
|
||||
browser = await puppeteer.launch({
|
||||
args: chromium.args,
|
||||
args: [...chromium.args, '--no-sandbox'], // Add --no-sandbox flag
|
||||
defaultViewport: { width: 800, height: 600 },
|
||||
executablePath: process.env.CHROME_PATH || await chromium.executablePath,
|
||||
headless: chromium.headless,
|
||||
|
Loading…
Reference in New Issue
Block a user