Merge branch 'feat/fire-index'

This commit is contained in:
Nicolas 2025-02-25 21:01:30 -03:00
commit bf1a79588e

View File

@ -23,6 +23,10 @@ function cleanOfNull<T>(x: T): T {
async function indexJob(job: FirecrawlJob): Promise<void> {
try {
if (job.mode !== "single_urls" && job.mode !== "scrape") {
return;
}
const response = await fetch(`${process.env.FIRE_INDEX_SERVER_URL}/api/jobs`, {
method: 'POST',
headers: {