Skip to content

Instantly share code, notes, and snippets.

@nehemiahj
Last active October 10, 2023 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nehemiahj/fba531686c9c854318b3ae442ce9c21d to your computer and use it in GitHub Desktop.
Save nehemiahj/fba531686c9c854318b3ae442ce9c21d to your computer and use it in GitHub Desktop.
A sample XM Cloud Build configuration
{
"deployItems": {
"modules": ["SxaStarter.Feature.ScheduledPublish"]
},
"buildTargets": [
"./src/Plugin.csproj",
"./XmCloudSXAStarter.sln"
],
"renderingHosts": {
"sxastarter": {
"path": "./src/rendering",
"nodeVersion": "16.15.1",
"type": "sxa",
"jssDeploymentSecret":"xxxxxxxxxx",
"enabled": true,
"lintCommand": "lint",
"startCommand": "start:production",
"buildCommand": "build",
"runCommand": "next:start"
}
},
"transforms": [
{
"xdtPath": "/xdts/projects/",
"targetPath": "/App_Config/Include/zzz"
},
{
"xdtPath": "/xdts/web.config.xdt",
"targetPath": "/web.config"
}
],
"postActions": {
"actions":{
"warmUpCm": {
"urls": [
"/sitecore/shell",
"/sitecore/shell/Applications/Content%20Editor.aspx?sc_bw=1",
"/sitecore/client/Applications/Launchpad"
]
},
"populateSchema": {
"indexNames": [
"sitecore_core_index",
"sitecore_master_index"
]
},
"reindex": {
"indexNames": [
"sitecore_core_index",
"sitecore_master_index"
]
},
"publish": {
"path": "/sitecore/content/FirstSite/SXAStarter",
"languages": [
"en",
"de-DE"
],
"itemIds": [],
"targets": ["Edge"],
"republish": false
}
},
"scsModules": {
"modules": ["SxaStarter.Feature.ScheduledPublish.Roles"]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment