As you know GraphQL requires schema to execute your queries. In Sitecore implementation the schema is regenerated every time you touch templates.
What we recently discovered, that if you have separate CD and CM, schema on CD node will not be refreshed after publish.
Luckily, this is quite easy to fix. You need to create an event handler and subscribe it to publish:end:remote event.
public class TemplateUpdateHandler : Sitecore.Services.GraphQL.Content.EventHandlers.TemplateUpdateHandler
public TemplateUpdateHandler(IGraphQLEndpointManager endpointManager) : base(endpointManager)
public void OnPublishEndRemote(object sender, EventArgs e)
It’s been a few months since I’ve published Packer templates for Sitecore. Their main purpose is to create Virtual Box images with a fully configured Sitecore instance. So far I have both updates for Sitecore 9.0 CMS and Sitecore Commerce 9.0.1 scripted there.
Recently one of my colleagues was tasked with a configuration of standalone commerce server in private cloud. ARM templates weren’t really useful there and we are too lazy to install everything manually. So we found an interesting side effect of Packer. Continue reading “Chef scripts for standalone Sitecore provisioning as side-effects of Sitecore-Packer”
It’s been a while since I wrote about Sitecore, React and embedded JS Engine. Also, my presentation on Philadelphia SUG last year was mainly theoretical. So the last few days I’ve spent cleaning up my sources that I’ve been using for those posts.
It looks like that this time to open sources. Continue reading “How to marry ReactJS and Sitecore with Webpack – Part 4. Module on GitHub”
Continue reading “How to marry ReactJS and Sitecore with Webpack – Part 3. JS Engines Performance”
I’ve ended my previous post I’ve mentioned that I would add redux in a Sitecore-ReactJS mix. That is what I’m going to talk about in this post. Continue reading “How to marry ReactJS and Sitecore with Webpack – Part 2. Adding Redux”
There were a few posts on the internet on how to integrate front-end code into a Sitecore solution. It all started with a post from Alex Shyba. Back in February, he describes the general concept of an integration. Then Richard Seal created a module for Sitecore that allow you to use jsx renderings in Sitecore.
I was trying to solve a problem of an HTML handover between front-end and Sitecore developers for a while. Finally, I was able to play with ReactJS and Sitecore by myself and here is what I end up doing.
Continue reading “How to marry ReactJS and Sitecore with Webpack”
Our port of Sitecore Reference Storefront finally passed all internal checks and got open sourced on EPAM’s GitHub account right before Sitecore SYM 2016.
Habitat version of a Sitecore Reference Storefront on GitHub
Fell free to dig in and answer your questions in comments, social networks or in person during the Symposium (you will be able to find near an EPAM booth during breaks)
Continue reading “Habitat version of a Sitecore Reference Storefront published on GitHub”