mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-04 01:00:37 +08:00
Merge pull request #396 from mendableai/bugfix/crawl-docker
[BUG] Fixed docker self hosting issue
This commit is contained in:
commit
214a6ee608
@ -2,8 +2,9 @@ import { supabase_service } from "../supabase";
|
||||
import "dotenv/config";
|
||||
|
||||
export async function logCrawl(job_id: string, team_id: string) {
|
||||
try {
|
||||
const { data, error } = await supabase_service
|
||||
if (process.env.USE_DB_AUTHENTICATION === 'true') {
|
||||
try {
|
||||
const { data, error } = await supabase_service
|
||||
.from("bulljobs_teams")
|
||||
.insert([
|
||||
{
|
||||
@ -11,7 +12,8 @@ export async function logCrawl(job_id: string, team_id: string) {
|
||||
team_id: team_id,
|
||||
},
|
||||
]);
|
||||
} catch (error) {
|
||||
console.error("Error logging crawl job:\n", error);
|
||||
} catch (error) {
|
||||
console.error("Error logging crawl job:\n", error);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -56,6 +56,7 @@ services:
|
||||
- redis
|
||||
- playwright-service
|
||||
- api
|
||||
command: [ "pnpm", "run", "workers" ]
|
||||
|
||||
redis:
|
||||
image: redis:alpine
|
||||
|
Loading…
x
Reference in New Issue
Block a user