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:
parent
89bab1e707
commit
241936ad5c
1 changed files with 2 additions and 0 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Reference in a new issue