Introduction

Learn about live configuration and data editing, and the Unified Configuration file format. Determine whether migrating your existing Site is right for you.

Welcome to the Unified Configuration migration guide! If you want to enable live configuration and data editing or update your existing Site to the Unified Configuration file format, you are in the right place.

Before we start, this guide assumes that you have an existing Site on CloudCannon that does not use the Unified Configuration file format.

In this guide we'll cover:

  • What is live configuration and data editing and how do you enable it for your existing Sites?
  • What is Unified Configuration and why would you migrate your existing Site to this file format?
  • How do you migrate your Site configuration to the Unified Configuration file format?

You may not need to complete every step in this guide but please carefully review each step to see if it is applicable to your Site's configuration.

What is live configuration and data editing?#

Before the OCtober 2024 Live configuration and data editing release, CloudCannon relied on a successful build to show you any updates to your configuration and data files in the app UI. This meant you had to wait for a build to see updates to your collections in the App Navigation, inputs in your editing interfaces, the appearance of your files, and more.

The live configuration and data editing feature allows you to see your changes live when you update your CloudCannon configuration files and data files — without the need to build your Site.

This means you can:

  • Populate inputs with new Collections files before saving the file.
  • Update your Input, Structure, and Schema configuration, and see those changes the next time you open a file in an editing interface.
    • (Note: CloudCannon applies a Schema to a file when first opened during an editing session. You will not see live changes from an updated Schema if a file is already open with unsaved changes.)
  • See changes quickly when you reconfigure the appearance of your file cards.

Live configuration and data editing provide a better editing experience for your team.

Live configuration and data editing are automatically included for new Sites created with the Unified Configuration file format. For Sites created before September 2024, this feature may not be enabled. We'll cover how to enable this feature for existing Sites in step two of this guide.

Live configuration editing is unavailable for Sites using a JavaScript CloudCannon configuration file. Please switch to a YAML (recommended) or JSON format to access this feature.

What is Unified Configuration?#

The Unified Configuration file format simplifies Site setup. Sites created using a CloudCannon configuration file in the Unified Configuration file format require less information from you and use the same configuration options regardless of SSG. The Unified Configuration file format also enables you to manage your content in CloudCannon before your first build.

Unified Configuration also allows you to put your Site in Headless Mode, turning off builds and streamlining Site Settings. Headless Mode is ideal for Sites built and hosted externally or dynamic Sites that rely on server-side rendering.

These features mainly benefit new Sites (i.e., without a CloudCannon configuration file) and new CloudCannon customers. Additionally, you can benefit from live configuration and data editing on most existing Sites without migrating to the Unified Configuration file format. So why migrate your existing Sites?

If you have an existing Site on CloudCannon, migrating to Unified Configuration is optional, but there are some scenarios in which migration may benefit you.

CloudCannon Documentation#

The CloudCannon Documentation website prioritizes using the most up-to-date instructions and screenshots. If your Site does not use the Unified Configuration file format, some articles on the CloudCannon Documentation website may not match your experience in the app.

If you decide not to migrate to Unified Configuration and need assistance with your Site, our friendly support team is always available to help.

Improved app loading times#

The Unified Configuration file format improves the app's loading time for Sites. CloudCannon will open your Site faster when you click on a Site card on the Sites page or the Sites tab within a Project.

Future copies of your Site#

The Unified Configuration file format improves your experience when creating new Sites (i.e., not branching from an existing Site). This benefit is not relevant to most existing Sites on CloudCannon, unless you plan to create a new copy of your Site at any point in the future.

Perhaps you want to create a new Site using the file structure of your existing Site, or you maintain website templates for use on CloudCannon. Migrating to Unified Configuration will improve the onboarding experience for your new Site.

Live configuration editing for Sites with a JavaScript configuration file#

CloudCannon supports live configuration editing for Sites with YAML or JSON CloudCannon configuration files. If you want to benefit from this feature on your existing Site, you must switch to a YAML (recommended) or JSON CloudCannon configuration file.

Switching to a YAML or JSON CloudCannon configuration file is the first step of our Unified Configuration migration guide — it's up to you if you want to complete all the steps.

Moving to Headless Mode#

If you want to add dynamic elements to your Site, or decide to host it externally while still using CloudCannon as your primary CMS, you can enable Headless Mode to streamline the CloudCannon interface. Headless Mode is only available for Sites using Unified Configuration.

Configuration maintenance#

CloudCannon will suggest build configuration options for Sites using Unified Configuration, such as potential command line options or environment variable. These suggestions are based on your SSG choice and the content of your files and make it easier to maintain your build configuration.

Additionally, CloudCannon requires less information to build Sites using Unified Configuration. For example, you no longer need to specify build arguments for Sites using Eleventy, Hugo, or Jekyll. If you change your build arguments in the future, there is no risk that CloudCannon will use the incorrect ones.

Future CloudCannon features#

Going forward, CloudCannon will treat Sites that use the Unified Configuration file format as the default. Although we don't have any planned at the moment, future CloudCannon features may require your Site to use the Unified Configuration file format.

Open in a new tab