Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix/check-for-auth-on-scrape-log

rafaelsideguide4eca6bd3014b
diff --git a/apps/api/src/services/logging/scrape_log.ts b/apps/api/src/services/logging/scrape_log.ts
index 9f34222f0..728a67d03 100644
--- a/apps/api/src/services/logging/scrape_log.ts
+++ b/apps/api/src/services/logging/scrape_log.ts
@@ -7,6 +7,10 @@ export async function logScrape(
scrapeLog: ScrapeLog,
pageOptions?: PageOptions
) {
+ if (process.env.USE_DB_AUTHENTICATION === "false") {
+ return;
+ }
+
try {
// Only log jobs in production
// if (process.env.ENV !== "production") {