Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

feat(branding): set realViewport on the branding action (#5105)

Abimael Martell806fc1eef3e8
diff --git a/apps/api/src/controllers/v1/types.ts b/apps/api/src/controllers/v1/types.ts
index 987bf3846..3614ee7ef 100644
--- a/apps/api/src/controllers/v1/types.ts
+++ b/apps/api/src/controllers/v1/types.ts
@@ -396,6 +396,8 @@ export type InternalAction = Action & {
metadata?: {
[key: string]: unknown;
};
+ /** fire-engine, executeJavascript only. */
+ realViewport?: boolean;
};
const actionsSchema = z
diff --git a/apps/api/src/scraper/scrapeURL/engines/fire-engine/index.ts b/apps/api/src/scraper/scrapeURL/engines/fire-engine/index.ts
index 33a60027f..0ab1fdebd 100644
--- a/apps/api/src/scraper/scrapeURL/engines/fire-engine/index.ts
+++ b/apps/api/src/scraper/scrapeURL/engines/fire-engine/index.ts
@@ -425,6 +425,7 @@ export async function scrapeURLWithFireEngineChromeCDP(
{
type: "executeJavascript" as const,
script: getBrandingScript(),
+ realViewport: true,
metadata: { __firecrawl_internal: true },
},
]