Building a dynamic Robots.txt solution using Sitecore Headless Services / NextJs & GraphQL

Building a dynamic Robots.txt solution using Sitecore Headless Services / NextJs & GraphQL

Recently I have been working on a 10.2 Sitecore JSS (NextJS/React) build using SXA for what I think it is best for which is adding Tenants and Sites and managing the Content Tree with Local Data and site-specific Media Library and Data Template management. Something which I found interesting in the early stages of Development using a totally different rendering engine was building out a dynamic Robots.txt solution so I've decided to share the dynamic Robots.txt solution I put together using the power of NextJs and GraphQL. This article assumes you have set up your JSS…

Read More