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.

Note

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:

  1. In the Deploy app, create an environment variable named Sitecore_ExperienceEdge_dot_WorkerStoreEnabled and set it to TRUE.

  2. Deploy the environment for which you want to enable the new publishing process.

  3. 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.

    Important

    You must republish sites to complete the process.

To revert to the older publishing process:

  1. In the Deploy app, set the Sitecore_ExperienceEdge_dot_WorkerStoreEnabled variable to FALSE.

  2. Redeploy the environment.

  3. Delete Edge content.

  4. 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.

    Important

    You must republish sites to complete the process.

Do you have some feedback for us?

If you have suggestions for improving this article,