Unverified Commit 8b485e16 authored by Henry Blevins's avatar Henry Blevins Committed by GitHub

Fix typo in image optimization documentation (#29685)

Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
parent 351d225f
...@@ -40,7 +40,7 @@ import profilePic from '../public/me.png' ...@@ -40,7 +40,7 @@ import profilePic from '../public/me.png'
Dynamic `await import()` or `require()` are _not_ supported. The `import` must be static. Also note that static image support requires Webpack 5, which is enabled by default in Next.js applications. Dynamic `await import()` or `require()` are _not_ supported. The `import` must be static. Also note that static image support requires Webpack 5, which is enabled by default in Next.js applications.
Next.js will automatically determine the `width` and `height` or your image based on the imported file. These values are used to prevent [Cumulative Layout Shift](https://nextjs.org/learn/seo/web-performance/cls) while your image is loading. Next.js will automatically determine the `width` and `height` of your image based on the imported file. These values are used to prevent [Cumulative Layout Shift](https://nextjs.org/learn/seo/web-performance/cls) while your image is loading.
```js ```js
import Image from 'next/image' import Image from 'next/image'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment