Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 14 commits into from
Jul 20, 2021
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