Skip to content

'imgix.cosmicjs.com' image domain in cms-cosmic example#31703

Merged
kodiakhq[bot] merged 3 commits intovercel:canaryfrom
FranciscoMoretti:fmoretti/bugfix-cms-cosmic-example-image-domain-rule
Nov 22, 2021
Merged

'imgix.cosmicjs.com' image domain in cms-cosmic example#31703
kodiakhq[bot] merged 3 commits intovercel:canaryfrom
FranciscoMoretti:fmoretti/bugfix-cms-cosmic-example-image-domain-rule

Conversation

@FranciscoMoretti
Copy link
Copy Markdown
Contributor

Bug-fix: 'imgix.cosmicjs.com' image domain is needed for the cms-cosmic example

Solution

As suggested by the output I got while running the exapmle, I've added the domain to next.config.js

event - compiled successfully in 129 ms (552 modules)
error - node_modules\next\dist\client\image.js (660:33) @ defaultLoader
Error: Invalid src prop (https://imgix.cosmicjs.com/8efcc570-9a21-11ea-bf2a-2b6ff88d4f06-e73aee30-1db0-11ea-a594-a170ead8b2cb-12.jpg?auto=format,compress,enhance&w=100&h=100) on `next/image`, hostname "imgix.cosmicjs.com" is not configured under images in your `next.config.js`
See more info: https://nextjs.org/docs/messages/next-image-unconfigured-host
null

Examples

  • Make sure the linting passes by running yarn lint

@ijjk ijjk added the examples Issue was opened via the examples template. label Nov 22, 2021
@kodiakhq kodiakhq Bot merged commit b4699b8 into vercel:canary Nov 22, 2021
@vercel vercel locked as resolved and limited conversation to collaborators Jan 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

examples Issue was opened via the examples template.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cms-cosmic example uses image domain that's not in next.config.js

3 participants