Skip to content

Conversation

@nickspoons
Copy link
Contributor

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.

Copy link
Owner

@loteoo loteoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants