Hahn-Solo Product Management
  • Dashboard
  • Technologies
  • Competitors
  • Tasks
Theme
Basic Information
Status
Open
Priority
Now
Category
Trending Feature
Repo
Content SDK PM
Effort
Significant
Task ID
T-4A450499
Details
Ship JSS-to-Content-SDK Migration Tooling
Create a codemod package (e.g., `@sitecore-content-sdk/codemod`) that automates the most mechanical JSS-to-Content-SDK v2.0 migration steps: rename `middleware.ts` to `proxy.ts`, replace `@sitecore-jss/*` imports with `@sitecore-content-sdk/*`, replace removed HOCs with `useSitecore` hook, update `next.config` from `images.domains` to `remotePatterns`. Publish as an npx-runnable tool.
Why
JSS EOL is June 2026 (3 months away). JSS downloads are still ~2-4x Content SDK downloads. Without automated tooling, the migration bottleneck will slow Content SDK adoption and leave teams on an unsupported SDK. Community partners (Fishtank, AgencyQ) are publishing guides but no official codemods exist.
Evidence
JSS/Content SDK download ratio; JSS 22.12 EOL June 2026; Sitecore research report
Details
Context: JSS enters EOL in June 2026 -- 3 months from now. JSS npm downloads are still 2-4x higher than Content SDK equivalents, indicating the majority of the Sitecore Next.js developer ecosystem has not yet migrated. Community partners (Fishtank, AgencyQ) are publishing migration guides, but no official automated tooling exists. Content SDK, as the strategic successor, should own this migration narrative.

Steps:
1. Create `packages/codemod/` in the Content SDK monorepo (or a standalone `@sitecore-content-sdk/codemod` package)
2. Implement jscodeshift transforms for:

- `@sitecore-jss/*` import renaming to `@sitecore-content-sdk/*`

- `middleware.ts` to `proxy.ts` file rename and content migration

- HOC removal (`withSitecoreContext`, `withPlaceholder`) and replacement with hooks

- `images.domains` to `remotePatterns` in `next.config`

- `SITECORE_EDGE_URL` to `SITECORE_EDGE_PLATFORM_HOSTNAME` env var rename

3. Make it runnable via `npx @sitecore-content-sdk/codemod`
4. Include a dry-run mode that reports what would change
5. Write migration guide documentation referencing the codemod
6. Test against a fresh JSS 22.12 Next.js App Router project

Acceptance criteria:
Codemod handles the 5 core transforms listed above
Dry-run mode works without modifying files
Migration guide published alongside the tool
Tested against JSS 22.12 App Router and Pages Router projects

Risks: JSS and Content SDK have API surface differences beyond import renaming. The codemod should handle the mechanical parts and clearly document what requires manual intervention (e.g., component refactoring for Server Components).
Source Report
reports/product-management/content-sdk/2026-04-05-content-sdk-pm.md
Report date: Apr 5, 2026