AEM as a Cloud Service: Frontend pipeline configuration not replicated to publish
Adobe Experience Manager (AEM) as a Cloud Service frontend pipeline deployment metadata under /conf/global/frontend/deployments isn’t intended for direct use on Publish instances. To resolve the issue, enable the Front-End Pipeline for the site, configure cq:conf, and use HtmlPageItemsConfig to provide the current static asset URL information on Publish.
Description description
Environment
Adobe Experience Manager as a Cloud Service (AEMaaCS), all versions
Issue/Symptoms
- After a frontend pipeline deployment in Cloud Manager, the configuration node used for static asset URL generation exists on Author but is missing on Publish.
- Static asset URLs constructed using the hash from this node may not resolve correctly on Publish.
- Manually replicating
/confto Publish temporarily resolves the issue but isn’t persistent across deployments.
Root Cause
Frontend pipeline deployment metadata under /conf/global/frontend/deployments is intended for internal use and isn’t designed to be consumed directly on Publish instances. In AEM as a Cloud Service, /conf is mutable content and is replicated to Publish when referenced by a published site configuration. The supported approach for static asset delivery is to use the HtmlPageItemsConfig node under /conf/.
Resolution resolution
Follow the steps below to resolve the issue:
- Enable the Front-End Pipeline for the site. This creates
SiteConfigandHtmlPageItemsConfignodes under/conf//sling:configs. - Ensure that the pages have the
cq:confproperty pointing to/conf/. - On each deployment, the frontend pipeline writes the current hash to the
prefixPathproperty of/conf//sling:configs/com.adobe.cq.wcm.core.components.config.HtmlPageItemsConfig/jcr:content. - Use AEM’s
HtmlPageItemsmechanism to automatically inject the correct static asset URLs using the current hash. These configuration nodes are replicated to Publish instances. - After deployment, verify on Author that
prefixPathunderHtmlPageItemsConfig/jcr:contentmatches the expected hash from the pipeline. - Confirm that the same
HtmlPageItemsConfignode exists on Publish. If it doesn’t, publishing/conf/is a valid interim step. - Don’t rely on manual replication of
/conf/global/frontend/deployments. It isn’t designed for persistent use on Publish and is overwritten by subsequent deployments.