fix: setup prismic image host (#31589)

I was following this example and had an error to display prismic's image, it's because we need to configure the host image in `next.config.js`

Here's the docs about it https://nextjs.org/docs/messages/next-image-unconfigured-host



## Bug

Don't have issue yet
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`


Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
This commit is contained in:
Clecio de Almeida 2021-12-16 01:48:22 -03:00 committed by GitHub
parent 0794cc07c0
commit 0f5600ed7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,5 @@
module.exports = {
images: {
domains: ['images.prismic.io'],
},
}