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
Merged

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

merged 14 commits into from Jul 20, 2021

Conversation

jflayhart
Copy link
Contributor

@jflayhart jflayhart commented May 10, 2021

Documentation

Do I use hostname or domains? I may never know because the docs tell me to do one thing, yet I got yelled at by compiler, and then I added domains and it still doesn't work? 🤷🏻‍♂️

Error: Invalid src prop (https://1234.cloudfront.net/assets/marketing-hero.jpg) on `next/image`, hostname "1234.cloudfront.net" is not configured under images in your `next.config.js`
See more info: https://nextjs.org/docs/messages/next-image-unconfigured-host

EDIT: Also, we use docker with a custom next config, so making a note about making sure to copy over next.config.js to be compatible for runtime config.

the docs are misleading because I tried this and still got yelled at by compiler, and then added domains and it worked?
@jflayhart
Copy link
Contributor Author

actually some of this im experiencing is related to: #23590

but i still think clarifying these docs is helpful.

Copy link
Member

@ijjk ijjk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, I went ahead and removed the docker note from this PR since we have explicit docker deployment docs here https://nextjs.org/docs/deployment#docker-image now, if it makes sense to still add this note it would probably be good to do so there.

Thanks for the PR!

@ijjk ijjk merged commit ddef873 into vercel:canary Jul 20, 2021
flybayer pushed a commit to blitz-js/next.js that referenced this pull request Aug 19, 2021
* 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>
@vercel vercel locked as resolved and limited conversation to collaborators Jan 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants