Skip to content

Commit

Permalink
chore: disable puppeteer sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
stalniy committed Jan 12, 2025
1 parent de80268 commit b56b0e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs-src/tools/prerender.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ async function renderPage({ page, iterator }, options) {
}

async function render(options) {
const browser = await puppeteer.launch();
const browser = await puppeteer.launch({
args: ['--no-sandbox', '--disable-setuid-sandbox'],
});

try {
const urls = await readSitemapUrls(browser);
Expand Down

0 comments on commit b56b0e9

Please sign in to comment.