title |
---|
Export with Image Optimization API |
You configured output: 'export'
(or ran next export
) while importing the next/image
component using the default loader
configuration.
However, the default loader
relies on the Image Optimization API which is not available for exported applications.
This is because Next.js optimizes images on-demand, as users request them (not at build time).
- Use
next start
to run a server, which includes the Image Optimization API. - Use any provider which supports Image Optimization (such as Vercel).
- Configure
loader
innext.config.js
. - Configure
unoptimized
innext.config.js
.