mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-11 22:18:58 +08:00
Nick: __searchPreviewToken
This commit is contained in:
parent
ef789ce8d7
commit
bf919ceb82
@ -42,6 +42,7 @@ export async function scrapeController(
|
||||
});
|
||||
//
|
||||
|
||||
const isDirectToBullMQ = process.env.SEARCH_PREVIEW_TOKEN === req.body.__searchPreviewToken;
|
||||
await addScrapeJob(
|
||||
{
|
||||
url: req.body.url,
|
||||
@ -60,6 +61,7 @@ export async function scrapeController(
|
||||
{},
|
||||
jobId,
|
||||
jobPriority,
|
||||
isDirectToBullMQ,
|
||||
);
|
||||
|
||||
const totalWait =
|
||||
|
@ -310,6 +310,7 @@ const baseScrapeOptions = z
|
||||
blockAds: z.boolean().default(true),
|
||||
proxy: z.enum(["basic", "stealth", "auto"]).optional(),
|
||||
__experimental_cache: z.boolean().default(false).optional(),
|
||||
__searchPreviewToken: z.string().optional(),
|
||||
})
|
||||
.strict(strictMessage);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user