mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-12 11:29:00 +08:00
feat(log_job): use atob
This commit is contained in:
parent
c69d156179
commit
62265c63c8
@ -25,7 +25,7 @@ function cleanOfNull<T>(x: T): T {
|
||||
async function saveJobToGCS(job: FirecrawlJob, bucketName: string): Promise<void> {
|
||||
try {
|
||||
const storage = new Storage({
|
||||
credentials: process.env.GCS_CREDENTIALS ? JSON.parse(process.env.GCS_CREDENTIALS) : undefined,
|
||||
credentials: process.env.GCS_CREDENTIALS ? JSON.parse(atob(process.env.GCS_CREDENTIALS)) : undefined,
|
||||
});
|
||||
const bucket = storage.bucket(bucketName);
|
||||
const blob = bucket.file(`${job.job_id}.json`);
|
||||
|
Loading…
x
Reference in New Issue
Block a user