Serving a CMS-Managed Favicon by Extending the Sitecore Content SDK Layout Service
Hello everyone, and welcome to another blog post! In this article, I’ll walk you through how to extend the Layout Service in the Sitecore Content SDK using a real-world example. I’ll demonstrate the implementation step by step and explain how you can apply the same approach to your own Sitecore projects. I previously implemented a similar use case using the JSS SDK, which you can refer to here . Let’s start by understanding the real-world use case. Every website needs a favicon, and in a typical Next.js project, it is usually managed through the public folder. In this article, we’ll explore how to move the site favicon out of the Next.js /public folder and manage it directly in Sitecore by extending the Layout Service in the Sitecore Content SDK. This allows content authors, developers to upload and manage the favicon once through Site Settings, while every page can access it through sitecore.context —without requiring an additional fetch for each component or a redeployment whene...