Unverified Commit 602b26b4 authored by Lee Robinson's avatar Lee Robinson Committed by GitHub

Add note to Gatsby migration guide about using `next/image` with custom loaders. (#28805)

Feedback from this article: https://blog.whereisthemouse.com/image-optimization-for-static-nextjs-sites
parent a0ba5450
...@@ -185,6 +185,8 @@ This means you can remove common Gatsby plugins like: ...@@ -185,6 +185,8 @@ This means you can remove common Gatsby plugins like:
Instead, use the built-in [`next/image`](/docs/api-reference/next/image.md) component and [Automatic Image Optimization](/docs/basic-features/image-optimization.md). Instead, use the built-in [`next/image`](/docs/api-reference/next/image.md) component and [Automatic Image Optimization](/docs/basic-features/image-optimization.md).
> The `next/image` component's default loader is not supported when using [`next export`](/docs/advanced-features/static-html-export.md). However, other loader options will work.
```jsx ```jsx
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