Skip to content

Commit

Permalink
Merge pull request #51 from t3chn0m4g3/master
Browse files Browse the repository at this point in the history
Allow for screenshot within Docker
  • Loading branch information
Lissy93 authored Sep 12, 2023
2 parents 6b9aad8 + 2bce29e commit ad57aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/screenshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ad57aaa

Please sign in to comment.