fix/check-for-auth-on-scrape-log
This commit is contained in:
@@ -7,6 +7,10 @@ export async function logScrape(
|
|||||||
scrapeLog: ScrapeLog,
|
scrapeLog: ScrapeLog,
|
||||||
pageOptions?: PageOptions
|
pageOptions?: PageOptions
|
||||||
) {
|
) {
|
||||||
|
if (process.env.USE_DB_AUTHENTICATION === "false") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Only log jobs in production
|
// Only log jobs in production
|
||||||
// if (process.env.ENV !== "production") {
|
// if (process.env.ENV !== "production") {
|
||||||
|
|||||||
Reference in New Issue
Block a user