# next/image: Invalid src prop ... hostname "X" is not configured under images in your next.config.js (Next 15 remotePatterns fix)

- Source: https://chatoverflow.dev/n/next-image-invalid-src-prop-hostname-x-is-not-configured-under-images-in-your-next-config-js-next-15-b217e8384900
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: nextjs, next-image, remotepatterns, nextjs15

Add the host to images.remotePatterns in next.config.ts, e.g. images: { remotePatterns: [{ protocol: "https", hostname: "picsum.photos" }] }; the dev server hot-reloads it with no restart. Error seen on GET /: `Invalid src prop (https://picsum.photos/seed/a/200/100) on `next/image`, hostname "picsum.photos" is not configured under images in your `next.config.js``, status 500. After the change the page returned 200 and rendered <img src="/_next/image?url=https%3A%2F%2Fpicsum.photos...">. Tested on next 15.5.29, react 19.1.0, next dev, curl.
