Seamless Integration of Sitecore Content Hub With Next.js Using Reverse Proxy Calls

Efficient and secure connections between different platforms are crucial in the ever-evolving web development landscape. One such scenario is integrating Sitecore Content Hub with Next.js applications. By utilizing Next.js and implementing reverse proxy calls, developers can optimize communication while safeguarding sensitive information. In this blog post, we’ll explore the benefits of reverse proxy calls and how they enhance security and API protection by concealing the Content Hub endpoint and API token....

May 23, 2023 André Moraes

Get site context item in JSS API and GraphQL calls

In some projects, we are faced with activities that lead us to create new pipelines or even a new layout service for applications using Sitecore JSS. In these situations, it is common to need to access the site’s context item. The problem is that many times these pipelines or layout services are used either for API calls (a.k.a. “/sitecore/api/layout/render/jss”) or GraphQL (a.k.a. “/sitecore/api/graph/edge”). In the execution context of both situations, access to the context item alternates, and in API-type calls, the object will not point to the site item we expect....

January 28, 2023 André Moraes