diff --git a/src/lib/components/prose/img.svelte b/src/lib/components/prose/img.svelte index 0c079867..4ff12631 100644 --- a/src/lib/components/prose/img.svelte +++ b/src/lib/components/prose/img.svelte @@ -7,7 +7,7 @@ h: number } - const sources = import.meta.glob(['/static/**/*.{jpg,jpeg,png,webp,avif}', '!/static/assets'], { + const sources = import.meta.glob(['/src/static/**/*.{jpg,jpeg,png,webp,avif}', '!/src/static/assets'], { query: { format: 'avif', quality: '80', @@ -24,7 +24,7 @@ export let alt: string = src export let loading: 'eager' | 'lazy' = 'lazy' export let decoding: 'async' | 'sync' | 'auto' = 'async' - let source: Image[] | undefined = sources[`/static${src}`] + let source: Image[] | undefined = sources[`/src/static${src}`] {#if source} @@ -34,4 +34,4 @@ {:else} -{/if} +{/if} \ No newline at end of file