Deployment service configuration
When requests are made to the Sitecore server, Uniform converts personalization instructions into a format that Akamai can execute. In order for Uniform to know to do this, some extra configuration is required on the Sitecore server.
note
If you are not using the Deploy functionality to generate a static site, you may wonder why you need to configure the deployment service. After all, the purpose of the deployment service is to generate the static site.
The reason is because Uniform reuses some of the same components used during the deployment process to support other features. This includes the ability to include personalization instructions in a page, as well as the ability to purge the Akamai cache during Sitecore publishing.
#
Option 1. Sitecore config filesThis option is recommended for production environments. Create a Sitecore config file and deploy it to your Sitecore instances.
<configuration> <sitecore> <uniform> <siteConfigurations> <siteConfiguration name="<YOUR-SITECORE-SITE-NAME>"> <site inherits="<YOUR-SITECORE-SITE-NAME>" /> <deployment> <deploymentService ref="uniform/services/nopDeploymentService" /> </deployment> <optimizeIntegrationService ref="uniform/services/optimizeIntegrationService" /> </siteConfiguration> </siteConfigurations> </uniform> </sitecore></configuration>
#
Option 2. Sitecore itemsThe required configuration can be specified using Sitecore items. This saves you from having to deploy files to your Sitecore instances.
- In Sitecore, open Content Editor.
- Navigate to sitecore > system > Uniform > Site Configurations.
- Select the item that corresponds to your site.
- Add a new item using the template Configure Site.
- Enter the following field values:
- Inherits:
<YOUR-SITECORE-SITE-NAME>
- Inherits:
- Save the item.
- Add a new item using the template Configure: No-Operation Deployment Service....
- Select the item named "Configuration" is added under the item that corresponds to your site.
- Add a new item using the template Configure: Optimize Integration....
- Publish the new items.