mirror of
https://github.com/mendableai/firecrawl.git
synced 2025-07-19 07:02:30 +00:00
feat(log_job): allow use of api key if specified
This commit is contained in:
parent
bd1c1b0012
commit
37b13ba146
@ -24,7 +24,9 @@ function cleanOfNull<T>(x: T): T {
|
||||
|
||||
async function saveJobToGCS(job: FirecrawlJob, bucketName: string): Promise<void> {
|
||||
try {
|
||||
const storage = new Storage();
|
||||
const storage = new Storage({
|
||||
apiKey: process.env.GCS_API_KEY,
|
||||
});
|
||||
const bucket = storage.bucket(bucketName);
|
||||
const blob = bucket.file(`${job.job_id}.json`);
|
||||
await blob.save(JSON.stringify(job.docs), {
|
||||
|
Loading…
x
Reference in New Issue
Block a user