A build The process of converting all your Site files into a single, functional website using the method specified by your SSG. Building on CloudCannon is optional, but is required for specific features, such as the Visual Editor, preview screenshots for output files in your Collection Browser, and the Testing Domain and Custom Domain. A website in CloudCannon that includes all the files, content, configuration, and settings needed to edit, build, and host a complete website.Build
Site
- The Visual Editor
- Preview screenshots for pages in your Collection Browser
- The Testing Domain
- Hosting your Site on a Custom Domain
What happens during a build?#
CloudCannon uses a CI/CD (Continuous Integration/Continuous Delivery) system. Every time you trigger a build of your Site, CloudCannon will:
- Download your files onto our server.
- Run your selected install commands (e.g.,
npm install,bundle install). - Run your selected build commands (e.g.,
npm run build). - Index your output files.
- Upload your output files to CloudCannon to generate previews (the Testing Domain, the Visual Editor, and screenshots in CloudCannon) and deliver them to your live domain (if you are hosting with CloudCannon).
Additionally, you can configure build hooks to run extra commands during your Site build. Build hooks are useful for downloading external data, running test commands, and more.
CloudCannon runs your build commands using bash in an isolated environment powered by Ubuntu. In addition to bash, CloudCannon includes several other programs and libraries your Site may need, such as Deno, Go, Node.js, and Ruby. You can pin a version of these dependencies to maintain consistency between builds.
If your build needs a program, or a version of a program, that the build environment does not include, contact our support team with your Site name and the program and version you need.
Starting a build#
Setting up your first Site build requires some configuration. For more information, please read our documentation on configuring your first build. Once you have completed your first build you can trigger subsequent builds at any time.
You can start a build by:
- Committing edits to your Git Repository after editing your files in CloudCannon or locally
- Updating your build configuration, such as your SSG, command line options, caching options, or unlocking builds on your Site.
- Clicking the Rebuild button on the Summary tab of your Site Dashboard.
- Configuring manual build scheduling or automatic build scheduling.
- Using the CloudCannon API.
You can prevent a Site from building by locking builds.
Reading your build output logs#
CloudCannon produces a log every time it runs a build. You can use your build log to follow CloudCannon's build process and diagnose your build if CloudCannon runs into an error.
While CloudCannon is building your Site, you can read the build output by clicking the View Output button in the notification at the bottom right of the app. This will open the Build Output modal.


The Build Output modal has a Copy button and a Timings checkbox. The Copy button copies your build log as plain text. The Timings checkbox shows when each event in the log happened, and CloudCannon remembers your choice for later builds. If you scroll up the log, a Latest logs button appears, which takes you back to the newest lines.
You can view all your build logs on the Builds tab of your Site Dashboard.

When your Site has Preserved Paths set, your build log also shows whether CloudCannon restored your preserved paths before the build and saved them afterward. For what each of these lines means, please read our documentation on preserved paths in your build log.
Caching between builds#
To improve the speed of your builds, CloudCannon can reuse cached files from a Site's previous build, whichever server runs the next build. You can configure CloudCannon to keep files between builds, so later builds can skip work that earlier builds have already done.
Caching helps most with build steps that are typically slow, such as image optimization, installing dependencies, and external data fetching. For more information, please read our documentation on configuring caching between builds.