Unverified Commit ddef873b authored by Josh Flayhart's avatar Josh Flayhart Committed by GitHub

Update next-image-unconfigured-host.md (#24953)

* 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: 's avatarJJ Kasper <jj@jjsweb.site>
parent 68cd5b12
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
#### Why This Error Occurred #### 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 #### 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 ```js
// next.config.js // next.config.js
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment