Skip to content

Instantly share code, notes, and snippets.

@thaitranet
thaitranet / gist:f3103fefdaa9b095056881d5149ceb9a
Created September 19, 2023 23:08
Deploy customizations to the XM Cloud environment
# dotnet sitecore cloud deployment create --environment-id <environment-id> --upload
# dotnet sitecore cloud deployment create --environment-id <id> --no-start --no-watch --upload --working-dir <path>
@thaitranet
thaitranet / xmcloud.build.json
Created September 19, 2023 23:04
The XM Cloud build configuration
{
"deployItems": {
"modules": [
"Foundation.*",
"Feature.*",
"Project.*"
]
},
"buildTargets": [
"./src/CM/Platform.csproj",
<?xml version="1.0" encoding="utf-8" ?>
<!--
Purpose: This include file enables and configures the Search feature.
This feature contains a large set of search renderings that enable users to build complex search pages.
To disable this file, change its extension to ".disabled".
-->
using Microsoft.Extensions.DependencyInjection;
using Sitecore.DependencyInjection;
using Sitecore.Pipelines;
using Sitecore.XA.Foundation.Multisite;
using Sitecore.XA.Foundation.SitecoreExtensions.Session;
using System.Linq;
using System.Web.Http;
using System.Web.Routing;
namespace Platform.Pipelines
@thaitranet
thaitranet / DiscoverPreviewSearchRequest.cs
Last active June 7, 2023 05:12
Enhance Your Sitecore Experience with SXA Search and Discover Integration
using System.Collections.Generic;
namespace Platform.Models
{
public class ContentParameters
{
public ProductParameters product { get; set; }
}
public class ContextParameters