Skip to content

Commit

Permalink
Update next-image-unconfigured-host.md (#24953)
Browse files Browse the repository at this point in the history
* Update next-image-unconfigured-host.md

the docs are misleading because I tried this and still got yelled at by compiler, and then added domains and it worked?

* Update next-image-unconfigured-host.md

* Update next-image-unconfigured-host.md

* Update next-image-unconfigured-host.md

* Update next-image-unconfigured-host.md

* Update next-image-unconfigured-host.md

* Update next-image-unconfigured-host.md

* remove unrelated section

Co-authored-by: JJ Kasper <jj@jjsweb.site>
  • Loading branch information
jflayhart and ijjk committed Jul 20, 2021
1 parent 68cd5b1 commit ddef873
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions errors/next-image-unconfigured-host.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

#### Why This Error Occurred

On one of your pages that leverages the `next/image` component, you passed a `src` value that uses a `hostname` in the URL that isn't defined in the `images` config in `next.config.js`.
On one of your pages that leverages the `next/image` component, you passed a `src` value that uses a hostname in the URL that isn't defined in the `images.domains` config in `next.config.js`.

#### Possible Ways to Fix It

Add the `hostname` to your `images` config in `next.config.js`:
Add the hostname of your URL to the `images.domains` config in `next.config.js`:

```js
// next.config.js
Expand Down

0 comments on commit ddef873

Please sign in to comment.