Next.js · Junior · Question 19 of 75

Why does <Image src="https://cdn.example.com/a.jpg" ... /> produce a configuration error?

Explanation

The image optimizer runs on your server, and without restrictions it could be used as a proxy for any URL. That's why allowed sources are listed in remotePatterns (protocol, host, path).

Further reading

Problem with a question

Next.js · Junior · question 19

Test yourself

Take the Next.js · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz