Enable Edge runtime publishing
SitecoreAI customers can opt to use Edge runtime publishing (v2), which has the potential to significantly improve publishing speed, at the cost of slower initial delivery.
Edge runtime publishing can decrease the performance of Static Site Generation (SSG) builds due to the initial request cost. It is unlikely that an SSG query is cached on the Edge, causing the SSG build to consume all the initial request delays. This cumulative effect can cause SSG build times to be up to three times longer compared to regular publishing. Edge runtime publishing is optimized for Incremental Static Regeneration (ISR) and Server-Side Rendering (SSR) scenarios.
To enable Edge runtime publishing:
-
In the Deploy app, create an environment variable named
Sitecore_ExperienceEdge_dot_WorkerStoreEnabledand set it toTRUE. -
Deploy the environment for which you want to enable the new publishing process.
-
When the deployment is complete, republish the sites by, for example, clicking Publish all sites on the Sites tab in the Deploy app. You only need to fully republish once to enable the new publisher.
ImportantYou must republish sites to complete the process.
To revert to the older publishing process:
-
In the Deploy app, set the
Sitecore_ExperienceEdge_dot_WorkerStoreEnabled variabletoFALSE. -
Redeploy the environment.
-
When the deployment is complete, republish the sites by, for example, clicking Publish all sites on the Sites tab in the Deploy app. You only need to fully republish once to revert to the previous way of publishing.
ImportantYou must republish sites to complete the process.