Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
7f6afa4a
Unverified
Commit
7f6afa4a
authored
Jan 14, 2022
by
Steven
Committed by
GitHub
Jan 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update links in `next export` + `next/image` error message (#33317)
Minor changes to this error message to link to latest docs
parent
ab62a13d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
export-image-api.md
errors/export-image-api.md
+7
-7
No files found.
errors/export-image-api.md
View file @
7f6afa4a
...
...
@@ -2,7 +2,7 @@
#### Why This Error Occurred
You are attempting to run
`next export`
while importing the
`next/image`
component
configured using the default
`loader`
.
You are attempting to run
`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.
...
...
@@ -10,15 +10,15 @@ This is because Next.js optimizes images on-demand, as users request them (not a
#### Possible Ways to Fix It
-
Use
`next start`
to run a server, which includes the Image Optimization API.
-
Use any provider which supports Image Optimization (
like
[
Vercel
](
https://vercel.com/docs/next.js/image-optimization
)
).
-
Configure a third-party
[
loader
](
https://nextjs.org/docs/basic-features/image-optimization#loader
)
in
`next.config.js`
.
-
Use the
[
`loader`
](
https://nextjs.org/docs/api-reference/next/image#loader
)
prop for
`next/image`
.
-
Use
[
`next start`
](
https://nextjs.org/docs/api-reference/cli#production
)
to run a server, which includes the Image Optimization API.
-
Use any provider which supports Image Optimization (
such as
[
Vercel
](
https://vercel.com
)
).
-
[
Configure the loader
](
https://nextjs.org/docs/api-reference/next/image#loader-configuration
)
in
`next.config.js`
.
-
Use the
[
`loader`
](
https://nextjs.org/docs/api-reference/next/image#loader
)
prop for
each instance of
`next/image`
.
### Useful Links
-
[
Deployment Documentation
](
https://nextjs.org/docs/deployment#
vercel-recommended
)
-
[
Deployment Documentation
](
https://nextjs.org/docs/deployment#
managed-nextjs-with-vercel
)
-
[
Image Optimization Documentation
](
https://nextjs.org/docs/basic-features/image-optimization
)
-
[
`next export` Documentation
](
https://nextjs.org/docs/advanced-features/static-html-export
)
-
[
`next/image` Documentation
](
https://nextjs.org/docs/api-reference/next/image
)
-
[
Vercel Documentation
](
https://vercel.com/docs/next.js/image-optimization
)
-
[
Vercel Documentation
](
https://vercel.com/docs/
concepts/
next.js/image-optimization
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment