build: compile dist for sitemap, favicon, and graceful shutdown changes
All checks were successful
Deploy to Production / Deploy to Server (push) Successful in 1m12s

This commit is contained in:
DocFast Bot 2026-02-16 16:10:15 +00:00
parent d7b0a0eaa6
commit 5b7e343139
2 changed files with 47 additions and 7 deletions

View file

@ -196,6 +196,7 @@ export async function closeBrowser() {
export async function renderPdf(html, options = {}) {
const { page, instance } = await acquirePage();
try {
await page.setJavaScriptEnabled(false);
const result = await Promise.race([
(async () => {
await page.setContent(html, { waitUntil: "domcontentloaded", timeout: 15_000 });
@ -222,6 +223,7 @@ export async function renderPdf(html, options = {}) {
export async function renderUrlPdf(url, options = {}) {
const { page, instance } = await acquirePage();
try {
await page.setJavaScriptEnabled(false);
const result = await Promise.race([
(async () => {
await page.goto(url, {