Make blog listing more resilient
This commit is contained in:
parent
3f0944c104
commit
73f423db68
@ -191,13 +191,16 @@ const getStorageUrlsForPrefix = async (prefix = '') => {
|
||||
const urls: StorageListResponse = [];
|
||||
|
||||
if (HAS_VERCEL_BLOB_STORAGE) {
|
||||
urls.push(...await vercelBlobList(prefix));
|
||||
urls.push(...await vercelBlobList(prefix)
|
||||
.catch(() => []));
|
||||
}
|
||||
if (HAS_AWS_S3_STORAGE) {
|
||||
urls.push(...await awsS3List(prefix));
|
||||
urls.push(...await awsS3List(prefix)
|
||||
.catch(() => []));
|
||||
}
|
||||
if (HAS_CLOUDFLARE_R2_STORAGE) {
|
||||
urls.push(...await cloudflareR2List(prefix));
|
||||
urls.push(...await cloudflareR2List(prefix)
|
||||
.catch(() => []));
|
||||
}
|
||||
|
||||
return urls
|
||||
|
||||
Loading…
Reference in New Issue
Block a user