try with shell instead

This commit is contained in:
Jorrin
2024-03-31 15:21:58 +02:00
parent 1e7523d4b5
commit 9da234f0ea

View File

@@ -14,7 +14,7 @@ const server = await preview({
let browser;
try {
browser = await puppeteer.launch({
headless: true,
headless: 'shell',
args: ['--no-sandbox', '--disable-setuid-sandbox'],
});
const page = await browser.newPage();