概要 Next.js 10が発表されたのでnext/imageによる画像最適化を試してみました。 試し方 します。 10.0.0になってました! こちらを見ながら試してみます。 画像はフリー素材のこちらを使います。 next/images 画像はpublic/free.jpgに入れています。 widthやheightを書かずにただ書くとエラーになります。
![Next.js 10のnext/imageによる画像最適化を試してみた](https://cdn-ak-scissors.b.st-hatena.com/image/square/bcc6d3066897ec4378dbf8e3f5e96b8975513897/height=288;version=1;width=512/https%3A%2F%2Fres.cloudinary.com%2Fzenn%2Fimage%2Fupload%2Fs--iaghle97--%2Fc_fit%252Cg_north_west%252Cl_text%3Anotosansjp-medium.otf_55%3ANext.js%25252010%2525E3%252581%2525AEnext%25252Fimage%2525E3%252581%2525AB%2525E3%252582%252588%2525E3%252582%25258B%2525E7%252594%2525BB%2525E5%252583%25258F%2525E6%25259C%252580%2525E9%252581%2525A9%2525E5%25258C%252596%2525E3%252582%252592%2525E8%2525A9%2525A6%2525E3%252581%252597%2525E3%252581%2525A6%2525E3%252581%2525BF%2525E3%252581%25259F%252Cw_1010%252Cx_90%252Cy_100%2Fg_south_west%252Cl_text%3Anotosansjp-medium.otf_37%3AAkahori%252Cx_203%252Cy_121%2Fg_south_west%252Ch_90%252Cl_fetch%3AaHR0cHM6Ly9zdG9yYWdlLmdvb2dsZWFwaXMuY29tL3plbm4tdXNlci11cGxvYWQvYXZhdGFyLzdjZDMxMzYxMzQuanBlZw%3D%3D%252Cr_max%252Cw_90%252Cx_87%252Cy_95%2Fv1627283836%2Fdefault%2Fog-base-w1200-v2.png)
We are excited to introduce Next.js 10, featuring: Built-in Image Component and Automatic Image Optimization: Automatically optimize images using the new next/image component Internationalized Routing: Start internationalizing your Next.js applications with built-in primitives Next.js Analytics: Measure and act on real user performance Next.js Commerce: An all-in-one starter kit for high-performan
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く