propagate priority to fire-engine

This commit is contained in:
Gergő Móricz
2024-08-15 19:04:46 +02:00
parent b79d3d1754
commit 29f0d9ec94
6 changed files with 17 additions and 3 deletions
@@ -26,6 +26,7 @@ export async function scrapWithFireEngine({
fireEngineOptions = {},
headers,
options,
priority,
}: {
url: string;
waitFor?: number;
@@ -35,6 +36,7 @@ export async function scrapWithFireEngine({
fireEngineOptions?: FireEngineOptions;
headers?: Record<string, string>;
options?: any;
priority?: number;
}): Promise<FireEngineResponse> {
const logParams = {
url,
@@ -78,6 +80,7 @@ export async function scrapWithFireEngine({
fullPageScreenshot: fullPageScreenshotParam,
headers: headers,
pageOptions: pageOptions,
priority,
...fireEngineOptionsParam,
},
{