Skip to content

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

fix(log_job): use service account credentials

Gergő Móriczc69d15617940
diff --git a/apps/api/src/services/logging/log_job.ts b/apps/api/src/services/logging/log_job.ts
index d1751a6c8..80481a3ea 100644
--- a/apps/api/src/services/logging/log_job.ts
+++ b/apps/api/src/services/logging/log_job.ts
@@ -25,7 +25,7 @@ function cleanOfNull<T>(x: T): T {
async function saveJobToGCS(job: FirecrawlJob, bucketName: string): Promise<void> {
try {
const storage = new Storage({
- apiKey: process.env.GCS_API_KEY,
+ credentials: process.env.GCS_CREDENTIALS ? JSON.parse(process.env.GCS_CREDENTIALS) : undefined,
});
const bucket = storage.bucket(bucketName);
const blob = bucket.file(`${job.job_id}.json`);