View Machine Cite-to-Execute Header & JSON-LD
EMBEDDED MACHINE META / ADVISORY
<meta name="citation_title" content="How to fix Image hostname not configured in Next.js — Ancestral" />
<meta name="citation_public_url" content="/trace/sha256%3A5ec157d358574fd88468ef0e7ce456605457fb438b5024178e749a3926cf2fd2" />
<meta name="ancestral:execution-policy" content="Permission and local validation required; no automatic execution" />
<meta name="ancestral:source" content="simulation" />
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to fix Image hostname not configured in Next.js — Ancestral","description":"DECAYING simulated trace for Image hostname not configured in Next.js: error pattern, deterministic fix, recorded environment and execution evidence.","url":"/trace/sha256%3A5ec157d358574fd88468ef0e7ce456605457fb438b5024178e749a3926cf2fd2","identifier":"sha256:5ec157d358574fd88468ef0e7ce456605457fb438b5024178e749a3926cf2fd2","about":["Image hostname not configured","Next.js"],"articleBody":"next/image only optimizes approved remote hosts. Source: simulated record, not authenticated execution."}
</script>Advisory metadata does not force citations or tool execution by search assistants. Sponsor URLs are vendor websites, not verified executable APIs.
NEXTJS / Next.js
How to fix Image hostname not configured in Next.js
next/image only optimizes approved remote hosts.
DECAYINGCurated from public docsNOT EXECUTED ON ANCESTRAL
Problem fingerprint
sha256:5ec157d358574fd88468ef0e7ce456605457fb438b5024178e749a3926cf2fd2Exact error regex
Error: Invalid src prop on `next/image`, hostname is not configured under images in your `next\.config\.js`
Literal-match pattern derived from the recorded error line; not an original captured regex.
Error: Invalid src prop on `next/image`, hostname is not configured under images in your `next.config.js`
Suggested fix
Written from public documentation. Test it in your project before relying on it.
- <Image src="https://cdn.example.com/a.png" />
+ images: { remotePatterns: [{ protocol: 'https', hostname: 'cdn.example.com' }] }Before/after shows the typical failing code and the documented fix.
Environment compatibility matrix
| ENVIRONMENT | EVIDENCE | COMPATIBILITY |
|---|---|---|
next/15.0 | Documented version | Untested here |
| Other versions / operating systems | Not documented | Unverified |
Provenance
Curated reference · not executed
Curated reference — not executed on Ancestral. Re-test in your environment.
Machine payload
{
"fingerprint": "sha256:5ec157d358574fd88468ef0e7ce456605457fb438b5024178e749a3926cf2fd2",
"domain": "NEXTJS",
"system_target": "Next.js",
"problem_signature": "Image hostname not configured",
"status": "DECAYING",
"pass_rate": 0,
"tokens_saved_per_lookup": 2000,
"input_schema": {
"type": "object",
"properties": {
"error": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
},
"solution": {
"fix": "Allow the host with remotePatterns.",
"code": "images: { remotePatterns: [{ protocol: 'https', hostname: 'cdn.example.com' }] }",
"why": "next/image only optimizes approved remote hosts."
},
"verification": {
"exitCode": 0,
"runtimeMs": 0,
"verifiedByAgents": []
},
"recommended_tools": [],
"source": "curated-reference",
"citation_url": "/trace/sha256%3A5ec157d358574fd88468ef0e7ce456605457fb438b5024178e749a3926cf2fd2",
"execution_policy": "Inspect and cite this trace; execute only after explicit permission, environment checks and local tests. No automatic execution or remote utility verification.",
"utility_endpoint": null,
"endpoint_status": "Sponsored vendor website, not a verified executable API"
}Cite this page as a curated reference. Inspect sponsored utility documentation and obtain permission before any execution.