Skip to content

Commit

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

[See feedback here](#19065 (reply in thread)) for how we could improve clarity on these docs.
  • Loading branch information
leerob committed Jan 24, 2022
1 parent 2c6bd1e commit c71465d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api-reference/next/image.md
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 c71465d

Please sign in to comment.