2.x
  1. What's new

What's new in Content SDK 2.5

Content SDK for Next.js 2.5 introduces Schema.org and JSON-LD rendering and a CLI command for listing experimental features. It also includes improvements to component rendering, media URL rewriting, proxies, and Pages Router builds.

To update your existing Content SDK 2.4 application to 2.5:

  1. In your existing application's package.json file, update the following:

    "@sitecore-content-sdk/nextjs": "^2.5.0"

    You must also update the following package to the version specified:

    Package

    Version

    @sitecore-content-sdk/cli

    ^2.4.0

    Note

    Content SDK packages use independent versioning. Not all packages have the same version number.

  2. Install the dependencies with the following command:

    npm install
  3. If your app relies on Sitecore stylesheet links, configure NEXT_PUBLIC_SITECORE_EDGE_CONTEXT_ID. Stylesheet URLs now use the public client context ID rather than the server context ID.

Review the Content SDK release page for a complete list of changes for version 2.5.

If you have suggestions for improving this article, let us know!