Skip to content

Commit 96e0768

Browse files
committed
fix: env schema optional gcs service account key
1 parent 5a8a51d commit 96e0768

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

benchmark.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ const start = Date.now()
3636
await Promise.all(Array.from({ length: TOTAL_REQUESTS }, (_, i) => limiter(() => run(i))))
3737
const duration = Date.now() - start
3838

39-
console.log(`Completed ${TOTAL_REQUESTS} requests in ${duration}ms`)
39+
console.debug(`Completed ${TOTAL_REQUESTS} requests in ${duration}ms`)
4040

4141
await fs.rm(TEMP_DIR, { recursive: true, force: true })

lib/schemas.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ export const envStorageDriverSchema = type.or(
1414
STORAGE_FILESYSTEM_PATH: 'string',
1515
},
1616
{
17-
STORAGE_DRIVER: type.unit('gcs'),
18-
STORAGE_GCS_BUCKET: 'string',
19-
STORAGE_GCS_SERVICE_ACCOUNT_KEY: 'string',
20-
STORAGE_GCS_ENDPOINT: 'string.url',
17+
'STORAGE_DRIVER': type.unit('gcs'),
18+
'STORAGE_GCS_BUCKET': 'string',
19+
'STORAGE_GCS_SERVICE_ACCOUNT_KEY?': 'string',
20+
'STORAGE_GCS_ENDPOINT': 'string.url',
2121
},
2222
)
2323
export const envDbDriverSchema = type.or(

0 commit comments

Comments
 (0)