# Publishing with Vault Digital Publishing

When users take content out of Vault to use on websites or other digital channels, they risk publishing content that is no longer compliant. Vault allows organizations to push regulated content to various distribution channels and easily withdraw superseded or obsolete content, eliminating that risk. With Vault Digital Publishing, you can leverage the performance benefits of a CDN (Content Delivery Network), allowing you to serve content quickly to global audiences, and the regulatory benefits of Vault, allowing you to easily withdraw content from the same system where you review and approve.

<div class="note-border alert-info">
  <div class="alert alert-info" role="alert">
    <div><i class="far fa-info-circle"></i></div>
    <div class="alert-text">
      <p><strong>Note</strong>: This feature is only available for Commercial Vaults (PromoMats and MedComms).</p>
    </div>
  </div>
</div>


## How Publishing Happens

For any document where the _Digital Publishing_ field is set to _Yes_, Vault automatically pushes content to your Amazon S3 bucket and generates a URL for each piece of content on both Staging (if configured) and Production buckets. There are no additional steps required for users to complete once Vault Digital Publishing is properly enabled and configured.

### Content for Publishing

Vault publishes and generates a URL for the following content:

  * Source File
  * Viewable Rendition
  * Video Rendition
  * All other renditions except Assets, CLM Distribution Package, Email Editor, Large Size Asset, Veeva Distribution Package, Veeva HTML, and Veeva Preview

Vault will only generate URLs for content specific to the document version being published. For example, if a document is in version 2.8, but version 2.7 included an _Imported Rendition_, the content push for version 2.8 will not generate a URL for Imported Rendition. However, the version 2.7 _Imported Rendition_ would remain available.

## Publish to Staging

Vault pushes content to Staging each time the document version changes. This includes both minor and major versions.

For example, Tracy uploads a new source file, which up-versions her document to version 0.2. Vault pushes the new source file to the Staging environment. Vault automatically generates a new Viewable Rendition for 0.2 because the source file has changed. Once the Viewable Rendition is complete, Vault also pushes that file to the Staging environment.

## Publish to Production

Vault pushes content to Production each time the document enters its lifecycle's _Steady_ state.

For example, Tracy's document gets approved and up-versioned to version 1.0. Vault pushes the latest source file and Viewable Rendition to the Production environment. When Tracy later uses _Create Draft_ on the document and up-versions to version 1.1, Vault does not make any changes to the content currently in the Production environment. When the document is re-approved for version 2.0, Vault again pushes the latest content to the Production environment.

## Published URLs

When Vault publishes content to a Production or Staging CDN, it generates URLs for each piece of published content. The URL is visible in the _Production CDN URL_ and _Staging CDN URL_ fields.

You can also click the launch (<img class="inline" src="https://platform.veevavault.help/assets/images/CDN_Rendition_Launch_icon_18R2.png" alt="Launch Icon" style="" />) icon to launch the URL, or the copy icon (<img class="inline" src="https://platform.veevavault.help/assets/images/CDN_Rendition_Copy_icon_18R2.png" alt="Copy Icon" style="" />) to copy the URL.

## Removing Published Content

Vault automatically removes published content from both the Staging and Production environments when any of the following occurs:

  * _Digital Publishing_ document field changes to _No_
  * Document enters its lifecycle's _Superseded_ or _Obsolete_ state
  * User deletes the published version of the document (only affects both Staging and Production if the same version is published on both)
  * User deletes the document

## Caching

"Edge servers" are servers distributed in various locations which will be closer to the content consumers, and which enable the CDN to serve content more quickly. By default, Amazon CloudFront only refreshes content on edge servers once per day. Because of this, consumers may not see the latest content for up to 24 hours.

## Limitations

Vault cannot publish content that exceeds 500 GB in size.

Digital Publishing does not create URLs while Vault is using [Vault Loader in Migration Mode](/en/lr/26597/#migration-mode).
