-
Notifications
You must be signed in to change notification settings - Fork 58
Content sdk upgrade #576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Content sdk upgrade #576
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request upgrades the Sugcon2024 site from Sitecore JSS to the latest Content SDK, representing a major architectural shift with breaking changes. The upgrade modernizes the codebase by migrating from Next.js Pages Router to App Router, consolidating configuration, and removing Storybook in favor of the Design Library.
Changes:
- Upgraded from
@sitecore-jss/sitecore-jss-nextjsto@sitecore-content-sdk/nextjswith all related imports and APIs updated - Migrated from Next.js Pages Router to App Router with new file structure (
src/app/directory) - Consolidated and simplified middleware using new Content SDK middleware components
- Removed Storybook, legacy API routes, plugin systems, and build scripts in favor of SDK-native tooling
Reviewed changes
Copilot reviewed 252 out of 266 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| xmcloud.build.json | Updated Node.js version to 22.11.0 and added build/run commands |
| package.json | Major dependency upgrade from JSS 21.5.3 to Content SDK 1.0.0 |
| tsconfig.json | Updated TypeScript config for Next.js 15 compatibility |
| next.config.ts | New TypeScript-based config replacing JavaScript version |
| sitecore.config.ts | New configuration file using Content SDK's defineConfig |
| src/middleware.ts | Complete refactor using Content SDK middleware components |
| src/app/ | New App Router structure with layout, page, and API route handlers |
| src/components/ | All components updated to use Content SDK imports and APIs |
| src/lib/ | Removed custom services/plugins, replaced with SDK client |
| SASS files | Updated import paths from @sass alias to relative paths |
| Scripts | Removed legacy scaffold/bootstrap scripts |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
[Cursor Review Comments] Code review: Next.js App Router best practicesCritical issues
Good practices
Recommendations
Specific code issues
VerdictThe structure follows App Router patterns, but there are critical issues with metadata handling that must be fixed before merging. The use of next/head will cause runtime issues in App Router. |
Upgrading the Sugon Sites to the latest version of the Content SDK
Types of changes
Upgraded from JSS to latest Content SDK
Tidied code along the way
Removed Storybook in favour of Design Library
Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
Closes #559