Skip to content

Commit

Permalink
Clarify next/image usage with next export based on feedback. (ver…
Browse files Browse the repository at this point in the history
…cel#33555)

[See feedback here](vercel#19065 (reply in thread)) for how we could improve clarity on these docs.
  • Loading branch information
leerob authored and natew committed Feb 16, 2022
1 parent 62984dd commit e3cdc0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api-reference/next/image.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ The following Image Optimization cloud providers are included:

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

> 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.
> 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)
> 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.
Expand Down

0 comments on commit e3cdc0a

Please sign in to comment.