diff --git a/README.md b/README.md index 0b60f06..8145cbe 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ We appreciate filed issues, pull requests and general discussion. - Turn your Space into a zooming presentation - Collaborate in realtime with teammates, students or friends - Share Spaces on the web or via email -- Export your work as printable PDF or ZIP (currently being fixed, stay tuned) +- Export your work as printable PDF # Use Cases diff --git a/helpers/exporter.js b/helpers/exporter.js index 8f923f4..c8b3710 100644 --- a/helpers/exporter.js +++ b/helpers/exporter.js @@ -28,7 +28,13 @@ module.exports = { browser = await puppeteer.launch( { headless: true, - args: ['--disable-dev-shm-usage', '--no-sandbox'] + args: [ + '--no-sandbox', // Disable the sandbox (useful in Docker) + '--disable-setuid-sandbox', // Additional security measure + '--disable-dev-shm-usage', // Workaround for shared memory issues in Docker + '--disable-gpu' // To ensure headless operation + ], + timeout: 60000 // Set a higher timeout (optional, increases wait time) } ); page = await browser.newPage(); diff --git a/routes/api/webgrabber.js b/routes/api/webgrabber.js index f7ff9c3..f0d6a4b 100644 --- a/routes/api/webgrabber.js +++ b/routes/api/webgrabber.js @@ -32,7 +32,13 @@ function website_to_png(url,on_success,on_error) { browser = await puppeteer.launch( { headless: true, - args: ['--disable-dev-shm-usage', '--no-sandbox'] + args: [ + '--no-sandbox', // Disable the sandbox (useful in Docker) + '--disable-setuid-sandbox', // Additional security measure + '--disable-dev-shm-usage', // Workaround for shared memory issues in Docker + '--disable-gpu' // To ensure headless operation + ], + timeout: 60000 // Set a higher timeout (optional, increases wait time) } ); page = await browser.newPage();