mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-01 19:42:03 +00:00
fix: revert parity harness to puppeteer-core with channel: chrome
The puppeteer import caused protocol timeout issues. Revert to puppeteer-core but add channel: "chrome" to auto-discover the Chrome binary installed by 'puppeteer browsers install'. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
b4023ae249
commit
00909c8258
@@ -3,7 +3,7 @@ import { existsSync, mkdirSync, writeFileSync } from "node:fs";
|
||||
import { dirname, join, resolve } from "node:path";
|
||||
import process from "node:process";
|
||||
import { spawnSync } from "node:child_process";
|
||||
import puppeteer, { type Page } from "puppeteer";
|
||||
import puppeteer, { type Page } from "puppeteer-core";
|
||||
import { MEDIA_VISUAL_STYLE_PROPERTIES, quantizeTimeToFrame } from "./utils/parityContract.js";
|
||||
|
||||
type ParityHarnessOptions = {
|
||||
@@ -270,6 +270,7 @@ async function run(): Promise<void> {
|
||||
ensureDir(options.artifactsDir);
|
||||
|
||||
const browser = await puppeteer.launch({
|
||||
channel: "chrome",
|
||||
headless: true,
|
||||
defaultViewport: {
|
||||
width: options.width,
|
||||
|
||||
Reference in New Issue
Block a user