Building 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
Articles in this section are useful for developers responsible for configuring and managing Site builds in CloudCannon.
Building is an optional step. If your Site is dynamic, or you only want to use CloudCannon as a CMS for your Git repository, you don’t need to build.
In the Building section of our Developer documentation, we cover:
- Configure your builds — Learn how to set up and manage your build settings
- Extend your builds — Learn how to add more functions to your build
- Schedule your builds — Learn how to schedule builds manually or automatically
- Output Files and URLs — Learn how CloudCannon matches output files to source files
- Headless Mode — Learn how to use CloudCannon as a CMS without building or hosting
- Site Mounting — Learn how to make files from one Site available to another at build time
Let’s briefly introduce a few of these topics.
Configure your builds#
CloudCannon needs to know a few details about your Site to build it, such as which SSG An abbreviation of Static Site Generator, an SSG is a tool that builds websites by processing templates, content, and data to create static HTML files. CloudCannon supports popular SSGs like Jekyll, Hugo, Eleventy, Next.js, and many others.SSG
For a more in-depth explanation of build configuration, please read our documentation:
- Configure your first build
- Select your SSG
- Configure your command line options
- Configure your environment variables
- Pin your dependency version
- Lock builds for your Site
Extend your builds#
You can add more functions to your build to collect information from your Site, improve your build time, and more.
For a more in-depth explanation of the various ways you can extend your build, please read our documentation:
- Build hooks
- Including the .git folder
- Initial Site settings
- Committing build files
- Configure caching between builds
- Optimize your Site
Schedule your builds#
Scheduling a build lets you edit your Site when you have time and release your changes later.
For a more in-depth explanation of build scheduling, please read our documentation:
Output Files and URLs#
When you build your Site, your SSG An abbreviation of Static Site Generator, an SSG is a tool that builds websites by processing templates, content, and data to create static HTML files. CloudCannon supports popular SSGs like Jekyll, Hugo, Eleventy, Next.js, and many others.SSG
For a more in-depth explanation of output files and URLs, please read our documentation:
- What is an output file?
- Update the output URL for a collection
- Disable output URL matching for a collection
Headless Mode#
If you don't want to build your Site in CloudCannon, you can enable Headless Mode. This disables building and hosting on CloudCannon while still allowing CloudCannon to manage your content.
For a more in-depth explanation of Headless Mode, please read our documentation:
Site Mounting#
Site Mounting A CloudCannon feature that makes one Site dependent on one or more other Sites. Files from a remote Site will be accessible to the local Site at build time, and any updates to the remote Site will trigger a build of the local Site. Site Mounting is an alternative to relying on Git submodules, build hooks, or custom APIs to manage your site dependencies.Site Mounting
For a more in-depth explanation of Site Mounting, please read our documentation: