917d594ca8
Fixes #18356
1.2 KiB
1.2 KiB
next export
with Image API
Why This Error Occurred
You are attempting to run next export
while importing the next/image
component configured using the default loader
.
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).
Possible Ways to Fix It
- Use
next start
to run a server, which includes the Image Optimization API. - Use Vercel to deploy, which supports Image Optimization.
- Configure a third-party loader in
next.config.js
.