0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-10 23:01:26 -05:00

fix(mark-doc): serve optimized src

This commit is contained in:
Josh Chappelow 2024-08-18 11:25:12 +09:00
parent 89bab1e707
commit 241936ad5c

View file

@ -334,6 +334,8 @@ async function emitOptimizedImages(
}
node.attributes[attributeName] = { ...src, fsPath };
// Serve optimizedSrc as src
node.attributes.src = src.src;
}
} else {
throw new MarkdocError({