Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Settings.config Sitecore 9
<?xml version="1.0"?>
<configuration
xmlns:patch="http://www.sitecore.net/xmlconfig/"
xmlns:set="http://www.sitecore.net/xmlconfig/set/"
xmlns:role="http://www.sitecore.net/xmlconfig/role/"
xmlns:env="http://www.sitecore.net/xmlconfig/env/">
<sitecore>
<settings>
<!--Local-->
<setting name="[ProjectName].Setting" value="abc123" env:require="Local" />
<setting name="[ProjectName].Setting2" value="xyz321" env:require="Local" />
<!--Develop-->
<setting name="[ProjectName].Setting" value="abc123" env:require="Develop" />
<setting name="[ProjectName].Setting2" value="xyz123" env:require="Develop" />
<!--Beta-->
<setting name="[ProjectName].Setting" value="123abc" env:require="Beta" role:require="ContentDelivery" />
<setting name="[ProjectName].Setting" value="123ABC" env:require="Beta" role:require="ContentManagement" />
<setting name="[ProjectName].Setting2" value="123xyz" env:require="Beta" role:require="ContentDelivery" />
<setting name="[ProjectName].Setting2" value="123XYZ" env:require="Beta" role:require="ContentManagement" />
<!--Live-->
<setting name="[ProjectName].Setting" value="ABC" env:require="Live" role:require="ContentDelivery" />
<setting name="[ProjectName].Setting" value="abc" env:require="Live" role:require="ContentManagement" />
<setting name="[ProjectName].Setting2" value="XYZ" env:require="Live" role:require="ContentDelivery" />
<setting name="[ProjectName].Setting2" value="xyz" env:require="Live" role:require="ContentManagement" />
</settings>
</sitecore>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.