Hahn-Solo Product Management
  • Dashboard
  • Technologies
  • Competitors
  • Tasks
Theme
Basic Information
Status
Open
Priority
Next
Category
Bug Fix
Repo
Content SDK PM
Effort
Moderate
Task ID
T-EBBB0E29
Details
Fix Edge Preview Image Breakage
Resolve issue #405 where `NextImage imageParams` results in broken images when using Edge Preview Context. Investigate whether the `remotePatterns` migration from v2.0 (replacing deprecated `images.domains`) left a gap in Edge Preview hostname resolution.
Why
Broken images in Edge Preview degrade the editorial experience and slow content review workflows.
Evidence
GitHub issue #405 (opened 2026-03-12, label: bug)
Details
Context: Issue #405 reports that `NextImage imageParams` produces broken images in Edge Preview Context. Content SDK v2.0 migrated from the deprecated `images.domains` to `remotePatterns` in `next.config.ts`. The Edge Preview hostname may not be included in the `remotePatterns` configuration, causing Next.js to reject the image optimization request.

Steps:
1. Reproduce with an Edge Preview session -- inspect browser network tab for 400/403 errors on `/_next/image` requests
2. Check whether the Edge Preview hostname is included in `remotePatterns` in the starter template
3. If missing, add the Edge Preview hostname pattern to the default `next.config.ts` template
4. If the issue is in the SDK's image parameter handling, trace `NextImage` component's `imageParams` prop resolution

Acceptance criteria:
Images render correctly in Edge Preview Context
`create-content-sdk-app` template includes Edge Preview hostname in `remotePatterns`
No regression in production image rendering

Risks: None identified.
Source Report
reports/product-management/content-sdk/2026-04-05-content-sdk-pm.md
Report date: Apr 5, 2026