hyperstatic icon indicating copy to clipboard operation
hyperstatic copied to clipboard

Add renderPages arg to run puppeteer with no sandbox

Open nickspoons opened this issue 2 years ago • 0 comments

On my linux host I can't run the default npm run prerender (npm run build && hyperstatic) because puppeteer hangs when running in a sandbox. A quick DDG for "--no-sandbox" shows many other systems where the sandbox causes problems.

This PR adds a --no-sandbox flag to renderPages.ts, which passes the flag on to puppeteer. I can then update my package.json to "prerender": "npm run build && hyperstatic --no-sandbox" and it runs.

nickspoons avatar Aug 14 '23 10:08 nickspoons