AEM offers a Sites preview service that lets developers and content authors preview a website’s final experience before it reaches the publish environment and is available publicly.
It facilitates previewing a range of experiences that would not be otherwise visible from the author environment. For example, page transitions, experience fragments, and other publish side only content.
The preview tier’s OSGi property values are inherited from the publish tier. However the preview tier’s values can be distinct from the publish tier by setting the service
parameter to the value preview
.
For more details about the preview environments, see Manage Environments.
The following example of an OSGi property determines the URL of an integration endpoint.
[
{
"name":"INTEGRATION_URL",
"type":"string",
"value":"http://s2.integrationvendor.com",
"service": "preview"
}
]
For more information, see this section of the OSGi configuration documentation.
Follow these steps so you can debug the preview tier using the Developer Console: