fix(resume-pdf): --no-sandbox для запуска под root + regen PDF

This commit is contained in:
root committed 2026-09-24 21:53:31 +02:00
1 parent 6d064e53b9
commit 4b2fe4fe9c
2 files changed
+4 -1

No files matched your search

+4 -1
View File
@@ -7,7 +7,10 @@ const OUT = resolve(__dirname, '../public/assets/resume/Mamadaev_Nik__CV__Produc
const PAGE = process.argv[2] || 'http://localhost:4175/resume/'; const PAGE = process.argv[2] || 'http://localhost:4175/resume/';
const FONT = process.argv[3] || 'geologica'; const FONT = process.argv[3] || 'geologica';
const browser = await puppeteer.launch({ headless: true }); const browser = await puppeteer.launch({
headless: true,
args: ['--no-sandbox', '--disable-setuid-sandbox'],
});
const page = await browser.newPage(); const page = await browser.newPage();
await page.goto(PAGE, { waitUntil: 'networkidle0', timeout: 30000 }); await page.goto(PAGE, { waitUntil: 'networkidle0', timeout: 30000 });