Skip to content

Commit c71465d

Browse files
authoredJan 24, 2022
Clarify next/image usage with next export based on feedback. (#33555)
[See feedback here](#19065 (reply in thread)) for how we could improve clarity on these docs.
1 parent 2c6bd1e commit c71465d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎docs/api-reference/next/image.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ The following Image Optimization cloud providers are included:
278278

279279
If you need a different provider, you can use the [`loader`](#loader) prop with `next/image`.
280280

281-
> 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.
281+
> Images can not be optimized at build time using [`next export`](/docs/advanced-features/static-html-export.md), only on-demand. To use `next/image` with `next export`, you will need to use a different loader than the default. [Read more in the discussion.](https://github.com/vercel/next.js/discussions/19065)
282282
283283
> The `next/image` component's default loader uses [`squoosh`](https://www.npmjs.com/package/@squoosh/lib) because it is quick to install and suitable for a development environment. When using `next start` in your production environment, it is strongly recommended that you install [`sharp`](https://www.npmjs.com/package/sharp) by running `yarn add sharp` in your project directory. This is not necessary for Vercel deployments, as `sharp` is installed automatically.
284284

0 commit comments

Comments
 (0)
Please sign in to comment.