Fix SSR puppeteer page initialization

This commit is contained in:
Mononaut
2023-08-19 21:05:28 +09:00
parent 126e87a746
commit 7f2a459575
3 changed files with 20 additions and 28 deletions

View File

@@ -11,7 +11,7 @@ const BROWSER_TIMEOUT = 8000;
const maxAgeMs = (config.PUPPETEER.MAX_PAGE_AGE || (24 * 60 * 60)) * 1000;
const maxConcurrency = config.PUPPETEER.CLUSTER_SIZE;
interface RepairablePage extends puppeteer.Page {
export interface RepairablePage extends puppeteer.Page {
repairRequested?: boolean;
language?: string | null;
createdAt?: number;