Saturday, November 27, 2021

Sitecore SXA 10.2 Improvements: CSS and JS Source Maps

It is a copy of my article initially placed here to keep all things in one place.

Remember my article about enabling of Source Map for Sitecore SXA?

November 2021 Sitecore SXA 10.2 was released. But if you check the list of new features/improvements in release notes, you will not find one important improvement for developers: Now enabling CSS Source Maps becomes much easier!

Steps that you need:

  1. Open gulp\config.js file
  2. Set sassSourceMap value to true
  3. Set js>JsSourceMap value to true
  4. Set css>cssSourceMap value to true
  5. Restart gulp

If you will look inside SXA Source Maps implementation, you will see that implementation is very similar to what I did for earlier Sitecore versions. Probably SXA Developers Team was inspired by my previous post.

Enjoy your work on the SXA theme with enabled source maps! And remember, if you need to get the source maps for Sitecore SXA earlier 10.2 version, you can use this article.

Saturday, November 13, 2021

Sitecore Solr Proxy Console: Update to Sitecore 10 Version

It is a copy of my article, initially placed here to keep all things in one place.

 2 years ago I had problems with troubleshooting issues with search based on Sitecore Solr. I solved that problem by writing a small tool that makes the content management server acts as a reverse proxy. It receives a request and depending on the requested URL, it either handles the request by Sitecore or redirects it to the Solr server. It made things simple, I didn't need any additional access. All that I needed was the ability to log in on Sitecore CM.

Time passed, and the problem with access to the Solr admin console didn't disappear. It became even more actual with Azure, Docker, and Kubernetes hosting. Of course, when you are an admin on your Azure subscription, you can easily give yourself permission. But sometimes, especially when you work with big companies, giving permission is not a quick process. But you need to solve the issue with search right now. And one of my colleagues recently faced the same problem. It means that issue is still actual.

The version that was created for Sitecore 8, didn't work and required a few updates. The first was the way how Sitecore Solr connection is configured. The second was a change in arguments for HttpRequestProcessor implementation. The third was changes in the authentication process. After these small changes, now module is ready for Sitecore 8-10 versions.

How to use module

  1. Download update package from GitHub releases page. You need to use 1.+ version for Sitecore 8.+ and 2.+ version for Sitecore 9.+ and 10.+
  2. Install update package using Sitecore update installation wizard
  3. You will get a link on Sitecore desktop to run Solr proxy
  4. You will be able to access Sitecore Solr Proxy using https://yourwebsite/solr for Sitecore 8.+ and https://yourwebsite/sitecore/shell/solr/ for Sitecore 9.+ and Sitecore 10.+

I hope, this module will save your time during troubleshooting search issues in different environments.