Content SDK 1.1: Design Library Enablers, Cursor Rules, Optimized Editing & Preview, and More

Sitecore has released Content SDK 1.1 few days back, a powerful update that brings major improvements for developers building with XM Cloud and Next.js.

This new version introduces:

  • Design library enablers including import map and code generation support
  • Cursor rules for AI-powered development assistance
  • Editing & preview optimizations for smoother authoring experiences
  • Display name-based routing with UTF-8 encoding
  • Upgrade to ESLint 9 with flat config support
  • Cache-busting improvements in the Design Library
  • Numerous bug fixes and stability enhancements

With a fresh start or upgrading from Content SDK 1.0.0, this release boosts productivity, enhances design-to-code workflows, and ensures smoother integration with Next.js apps.

Upgrade Guide: Content SDK 1.0.0 → 1.1.0

1. Update Application Dependencies

To update your dependencies, In your existing application's package.json file, update every @sitecore-content-sdk package to version 1.1.0, In your existing application's package.json file by running the following command:

npm install

2. Update Next.js Template Files

After updating your dependencies, you must synchronize files in your existing application

In sitecore.cli.config.ts find and replace following imports

- import config from './sitecore.config';

+ import scConfig from './sitecore.config';

- import { generateSites, generateMetadata, extractFiles }

-   from '@sitecore-content-sdk/nextjs/tools';

+ import { generateSites, generateMetadata, extractFiles, writeImportMap }

+   from '@sitecore-content-sdk/nextjs/tools';

Update the build section to include writeImportMap  as below:

export default defineCliConfig({

  build: {

    commands: [

      ...

      writeImportMap({

        paths: ['src/components'],

        scConfig,

      }),

    ],

  },

});

In src/Layout.tsx file

1. Find the following line

const mainClassPageEditing = mode.isEditing ? 'editing-mode' : 'prod-mode';

2. Add an import map loader just after above line

const importMapDynamic = () => import('.sitecore/import-map');

3. Update the DesignLibrary element, by adding loadImportMap prop as below

<DesignLibrary loadImportMap={importMapDynamic} />

 .sitecore/import-map.ts file

Create a new file .sitecore/import-map.ts with following command

import { combineImportEntries, defaultImportEntries } from '@sitecore-content-sdk/nextjs/codegen';

export default combineImportEntries(defaultImportEntries, []);

.gitignore

In your existing application's .gitignore file, add the import-map.ts entry after component-map.ts

!.sitecore/component-map.ts:

!.sitecore/import-map.ts

With these updates, the app will get:

  • Fully support Design Library import maps
  • Run on ESLint 9 with streamlined configs
  • Deliver smoother editing and preview experiences
  • Provide AI-guided development with Cursor rules
  • Handle localized display name-based routing more effectively

The Content SDK 1.1 release delivers a big step forward in developer productivity, platform stability, and AI-assisted workflows.

Hope this helps!

 

Comments

Popular posts from this blog

Setting Up Sitecore Headless with Next.js in Disconnected Mode

Beginner’s Guide: Step-by-Step Local Installation for Sitecore XM Cloud

Migrating from Sitecore JSS SDK to Content SDK – Best Practices and Pitfalls