Blog
14 posts on Sitecore and Next.js.
2026
Tracking Custom Click Events in Sitecore Search Using PageController
Send click events from CMS banners and carousels to Sitecore Search using PageController, so clicks outside its widgets still get tracked.
Client-Side API Caching with IndexedDB in Sitecore XM Cloud
Build a small IndexedDB cache with a TTL to stop repeat API calls in a Sitecore XM Cloud Next.js app, and see why it beats localStorage.
2025
Sitecore Search: Widget Rules
Learn how slots and boost, bury and blacklist rules shape Sitecore Search widget results, and what happens when you combine them.
Handling Server Error (500) in a Sitecore JSS + Next.js Multisite Setup
Set up a Sitecore-managed 500 page that resolves per site by hostname in a Sitecore JSS Next.js multisite app, with a static fallback.
Part 2: Optimizing Sitecore Context Injection with Caching
Add an in-memory cache keyed by site and language to your Sitecore JSS page-props-factory plugin so global data is not refetched on every request.
Part 1: Enhancing Sitecore JSS with Global Context Data Injection
Inject global configuration data into the Sitecore JSS context with a page-props-factory plugin and read it anywhere with useSitecoreContext.
Sitecore Setup
Install Sitecore 10.3 XP on a Windows machine, from enabling IIS and installing SQL Server Express to setting up Solr and running the installer.
Sitecore Search Recommendations: A Step-by-Step Guide
Create a Sitecore Search recommendation widget in the CEC portal, pick a recipe and rules, then render it in Next.js with useRecommendation.
Implementing Range Facets in Sitecore Search with Next.js
Configure a histogram range facet in Sitecore Search and render it as a price slider in Next.js, with custom labels and URL sync.
Implementing Custom 404 Pages in Sitecore JSS Next.js Multisite
Create a custom 404 page in Sitecore and render the right one per site in a Sitecore JSS Next.js multisite app, with a static fallback.
2024
Creating Your First OrderCloud App with Next.js: A Step-by-Step Guide
Create an OrderCloud marketplace, security profile, API client and buyer user, then connect them to the OrderCloud Next.js starter app.
Next.js Scaffolding Script: Simplifying Component Setup and Configuration
Extend the Sitecore JSS scaffold script so one command creates your Next.js component plus its Storybook story and mock-data files.
2023
Configuring Sitecore CLI
Install Sitecore CLI, set up sitecore.json and module files, log in to your Sitecore instance and pull serialized items as YAML.
Sitecore JSS 10.3 Leprechaun Setup
Install Leprechaun and configure module.json and leprechaun.config to generate TypeScript types from serialized templates in Sitecore JSS 10.3.