mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-14 01:15:52 +08:00
bugfix docker self hosting
This commit is contained in:
parent
f2a08e0ab8
commit
f453bcf17c
@ -2,6 +2,7 @@ import { supabase_service } from "../supabase";
|
|||||||
import "dotenv/config";
|
import "dotenv/config";
|
||||||
|
|
||||||
export async function logCrawl(job_id: string, team_id: string) {
|
export async function logCrawl(job_id: string, team_id: string) {
|
||||||
|
if (process.env.USE_DB_AUTHENTICATION === 'true') {
|
||||||
try {
|
try {
|
||||||
const { data, error } = await supabase_service
|
const { data, error } = await supabase_service
|
||||||
.from("bulljobs_teams")
|
.from("bulljobs_teams")
|
||||||
@ -14,4 +15,5 @@ export async function logCrawl(job_id: string, team_id: string) {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error logging crawl job:\n", error);
|
console.error("Error logging crawl job:\n", error);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -56,6 +56,7 @@ services:
|
|||||||
- redis
|
- redis
|
||||||
- playwright-service
|
- playwright-service
|
||||||
- api
|
- api
|
||||||
|
command: [ "pnpm", "run", "workers" ]
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:alpine
|
image: redis:alpine
|
||||||
|
Loading…
x
Reference in New Issue
Block a user