Selecting a main asset source

Last modified: May 11th, 2023

Working with a specific static site generator?
Customize CloudCannon's documentation to suit your SSG.

Great! We'll show you documentation relevant to .
You can change this any time using the dropdown in the navigation bar.

Setting a DAM as your main asset source in CloudCannon allows you to use DAM URLs which start with "/", instead of being fully qualified. A fully qualified URL is a complete Internet address and must include a hostname and top-level domain.

By default, all the URLs for assets on your DAM need to be fully qualified in order to preview them on CloudCannon. Similarly, CloudCannon will always save fully qualified URLs in your code when you upload an asset to a DAM through the CMS. This behaviour can be turned off by setting a DAM as your main asset source.

Main source configuration#

The main asset source for your site can be the site files or a DAM linked to the site. By default, the main source is your site files.

If you choose a DAM to be your main asset source, you will not be able to browse assets from, or upload to, your site files in CloudCannon.

  1. In your site’s settings, navigate to Files/Assets
  2. Locate your DAM (or Site Files) from the list, and click the three dots in the top right corner
  3. From the context menu, click Set Main Source
  4. Click the Confirm button

When changing your main asset source, you might need to rewrite existing URLs on the site, to avoid broken previews in CloudCannon.

Related Articles

Open in a new tab