Next.js Discord

Discord Forum

Showing images without defining remote patterns

Unanswered
Tropical Parula posted this in #help-forum
Open in Discord
Tropical ParulaOP
I'm using the Spotify API to show a user all their playlists along with the images of those playlists. These images are hosted on several different cdns which I can't know beforehand, so when I try to show them in an <Image />-component I get a runtime error that says that the hostname is not configured in my next.config.js.
Is there any way to display external images in an <Image /> without having to add the hostnames in config, or should I just use regular <img /> instead?

2 Replies