Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add renderPages arg to run puppeteer with no sandbox #44

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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