Question · Vibe coding with Claude Code course · Module 11: Spotify clone
Images from an external server in next.config.ts
Album covers come from images.unsplash.com through next/image. What do you put in next.config.ts?
Answer options
- images.domains with the host images.unsplash.com, like in old tutorials
- images.remotePatterns with the https protocol and the host images.unsplash.com
- Nothing, because next/image fetches every address over https
- A NEXT_PUBLIC_IMAGES_HOST variable in .env.example
You can check the correct answer by solving this task in the CodeWorlds game.