feat: add picos de europa post
This commit is contained in:
@@ -16,6 +16,7 @@ interface Props {
|
||||
|
||||
async function checkImage(image: ImageMetadata) {
|
||||
const src = image.src;
|
||||
if(!src) return false;
|
||||
try {
|
||||
if (src.startsWith("/@fs") || src.startsWith("/_astro")) return true;
|
||||
const res = await inferRemoteSize(src);
|
||||
@@ -28,6 +29,7 @@ async function checkImage(image: ImageMetadata) {
|
||||
return false;
|
||||
} catch (err) {
|
||||
console.log("Failed to fetch: ", src);
|
||||
console.log(err)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user