fix: some image loading
Some checks failed
Deploy to SFTP Server / build (push) Failing after 6m29s

This commit is contained in:
Max Richter
2025-10-24 13:46:35 +02:00
parent 6230126d38
commit f52da7f3aa

View File

@@ -20,7 +20,7 @@ async function checkImage(image: ImageMetadata) {
try {
if (src.startsWith("/@fs") || src.startsWith("/_astro")) return true;
const res = await inferRemoteSize(src);
console.log(res)
if (res.format) {
image.format = res.format;
return true;
} else {