Skip to content

Commit

Permalink
<Image>srcに外部画像のURLを渡せるようにする
Browse files Browse the repository at this point in the history
  • Loading branch information
ciffelia committed Dec 7, 2023
1 parent 9b08c88 commit 6c4e56b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/common/Image.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { HTMLAttributes } from 'astro/types'
import { getImage } from 'astro:assets'
type Props = Omit<HTMLAttributes<'img'>, 'src' | 'srcset'> & {
src: ImageMetadata | Promise<{ default: ImageMetadata }>
src: string | ImageMetadata | Promise<{ default: ImageMetadata }>
widths?: number[]
}
Expand Down

0 comments on commit 6c4e56b

Please sign in to comment.