<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kikiki-kiki</author_name>
  <author_url>https://blog.hatena.ne.jp/kikiki-kiki/</author_url>
  <blog_title>かもメモ</blog_title>
  <blog_url>https://chaika.hatenablog.com/</blog_url>
  <categories>
    <anon>Next.js</anon>
    <anon>React</anon>
    <anon>TypeScript</anon>
    <anon>JavaScript</anon>
  </categories>
  <description>プロトタイプを作っているときなど、ダミー画像で画像生成サービスを使うことがあります。 Next.js の組み込みコンポーネント next/image でダミー画像生成サービスの url を src に設定したらエラーになったので忘れないようにメモ。 next/image の src に外部ドメインを指定するとエラーになる 例えばダミー画像の Avatar を表示するコンポーネント import { VFC } from &quot;react&quot;; import Image from 'next/image'; type AvatarProps = { alt?: string; width: numbe…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2021%2F07%2F20%2F083000&quot; title=&quot;Next.js next/image で外部URLの画像を使いたいときにやること - かもメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://m.media-amazon.com/images/I/51Q6khy7D+L._SL500_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-07-20 08:30:00</published>
  <title>Next.js next/image で外部URLの画像を使いたいときにやること</title>
  <type>rich</type>
  <url>https://chaika.hatenablog.com/entry/2021/07/20/083000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
