Going live
Publish the site on CloudCannon or any static host, and replace everything the template ships as a placeholder.
Host it on CloudCannon
The repository carries CloudCannon’s build settings, so there is nothing to fill in by hand.
Connect the repository
Push your copy to GitHub, GitLab or Bitbucket. In CloudCannon, choose Create a Site, pick your Git provider, then your repository and branch. Each CloudCannon site tracks one branch.
Build
Set the static site generator to Astro and leave the source at the repository root. CloudCannon reads the build settings from
.cloudcannon/initial-site-settings.json—npm run build, outputdist, Node 24 — and builds.Attach your domain
Add a custom domain in the site's hosting settings. CloudCannon's documentation covers domains, permissions and staging branches.
Every component’s editor configuration is picked up by glob, so the Visual Editor, the Content Editor’s insert menu and the data panels work from the first build.
Host it anywhere else
npm run build emits a static dist/, search index included. Netlify, Vercel, GitHub Pages or any static host will serve it with the same build command and output directory. Two features are CloudCannon-only and need replacing elsewhere: form submissions and the redirects in src/data/redirects.json.
Set your production URL
This is the one thing a fresh copy gets wrong without any error. site in astro.config.mjs is the base for every canonical tag, sitemap entry, RSS link and structured-data URL. Left at https://example.com, the pages look right while every one of those URLs points at a domain you don’t own.
npm run reset:starterThe reset script asks for your site name and URL, then clears the demo content and the template’s branding. To set the URL by hand instead, change it in two places: site in astro.config.mjs and url in src/data/seo.json. Use your custom domain, not the CloudCannon testing domain, so the URLs stay correct once the domain is attached.
Replace the placeholders
npm run check:placeholders lists everything still set to the template’s values. It runs as part of npm run check, as a warning.
| File | Replace |
|---|---|
astro.config.mjs |
site |
src/data/seo.json |
url, siteName, titleFormat, description, favicons, share image |
src/data/header.json |
The logo and the topbar links |
src/data/footer.json |
Links, social icons and the small print |
src/data/pageTools.json |
repositoryUrl, which every “Edit this page” link is built from |
src/content/changelog/ |
The template’s releases — the header badge shows the newest |
src/data/announcementBar.json |
The launch message |
Make it a hard failure in your own CI
Add npm run check:placeholders -- --strict to your pipeline and a build with a placeholder URL fails instead of warning.
Before you launch
- Link a CloudCannon Inbox if you keep the helpful vote or any form — without one, submissions have nowhere to go. See Setting up CloudCannon Forms.
- Add a redirect in
src/data/redirects.jsonfor any page you renamed since people started sharing links. - Run
npm run check. It includeslint:links, which fails on any internal link that points at no page — a page renamed late in a project leaves them behind. - Run
npm run build && npm run previewand try search (⌘K): the dev server has no index, so this is the first time you see it working.