mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-12 18:19:00 +08:00
Merge branch 'feat/fire-index'
This commit is contained in:
commit
bf1a79588e
@ -23,6 +23,10 @@ function cleanOfNull<T>(x: T): T {
|
|||||||
|
|
||||||
async function indexJob(job: FirecrawlJob): Promise<void> {
|
async function indexJob(job: FirecrawlJob): Promise<void> {
|
||||||
try {
|
try {
|
||||||
|
if (job.mode !== "single_urls" && job.mode !== "scrape") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const response = await fetch(`${process.env.FIRE_INDEX_SERVER_URL}/api/jobs`, {
|
const response = await fetch(`${process.env.FIRE_INDEX_SERVER_URL}/api/jobs`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user