Skip to content

on next/image, hostname is not configured under images in your next.config.js #20953

Answered by jamesmosier
Vince-vegas asked this question in Help
Discussion options

You must be logged in to vote

Try setting up your domains like this:

module.exports = {
  images: {
    domains: ['tmdb.org', 'themoviedb.org'],
  },
};

Only the actual domain should need setup without the protocol and any subdomains.

Replies: 8 comments 25 replies

Comment options

You must be logged in to vote
6 replies
@Besuf
Comment options

@DuudeXX8
Comment options

@skyespirates
Comment options

@ventura01
Comment options

@helviorhild
Comment options

Answer selected by Vince-vegas
Comment options

You must be logged in to vote
5 replies
@mrlaseptima
Comment options

@katungi
Comment options

@fer0o
Comment options

@adamaslan
Comment options

@rohilpinto
Comment options

Comment options

You must be logged in to vote
2 replies
@wellitongervickas
Comment options

@idemmanuel001
Comment options

Comment options

You must be logged in to vote
4 replies
@arthurfiorette
Comment options

@vladimirrostok
Comment options

@sxanni
Comment options

@janlin002
Comment options

Comment options

You must be logged in to vote
4 replies
@ghost
Comment options

@ghost
Comment options

@EliseiNicolae
Comment options

@sahandghorbani
Comment options

This comment was marked as disruptive content.

Comment options

You must be logged in to vote
1 reply
@natBizitza
Comment options

Comment options

You must be logged in to vote
3 replies
@Psiale
Comment options

@Kamasah-Dickson
Comment options

@idityaGE
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet