mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-12 02:09:03 +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(
|
await addScrapeJob(
|
||||||
{
|
{
|
||||||
url: req.body.url,
|
url: req.body.url,
|
||||||
@ -60,6 +61,7 @@ export async function scrapeController(
|
|||||||
{},
|
{},
|
||||||
jobId,
|
jobId,
|
||||||
jobPriority,
|
jobPriority,
|
||||||
|
isDirectToBullMQ,
|
||||||
);
|
);
|
||||||
|
|
||||||
const totalWait =
|
const totalWait =
|
||||||
|
@ -310,6 +310,7 @@ const baseScrapeOptions = z
|
|||||||
blockAds: z.boolean().default(true),
|
blockAds: z.boolean().default(true),
|
||||||
proxy: z.enum(["basic", "stealth", "auto"]).optional(),
|
proxy: z.enum(["basic", "stealth", "auto"]).optional(),
|
||||||
__experimental_cache: z.boolean().default(false).optional(),
|
__experimental_cache: z.boolean().default(false).optional(),
|
||||||
|
__searchPreviewToken: z.string().optional(),
|
||||||
})
|
})
|
||||||
.strict(strictMessage);
|
.strict(strictMessage);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user