Publishing

The Publishing tab connects the site to GitHub and to hosting, and holds the domains of the site.

Site settings, Publishing tab, after setup: GitHub, project, hosting and Vercel connected, with four domains and the Custom domain field.
Publishing connects GitHub and hosting, and holds the domains of the site.

Deployment

Deployment is a list of steps. Each step shows a green check mark when it is complete.

StepWhat it is
GitHubThe GitHub account that keeps the site files
ProjectThe GitHub repository of the site
HostingVercel, or Manual hosting for another host
VercelThe Vercel account
ProjectThe Vercel project that hosts the site

To change a step, click Change account, Change project or Change hosting on its row.

For the first setup, see Connect GitHub.

Manual hosting

With Manual hosting, Splitleaf publishes the site to GitHub only. Type the address of the site in Site URL. Connect your own host to the branch that the tab names, usually dist. See Hosting and build output.

Domains

Each domain of the Vercel project has one row.

  • Active shows that the domain works.
  • Primary shows the main address of the site. Splitleaf uses it in sitemap.xml and as the live site URL.
  • Live or Staging sets which version of the site the domain shows.
  • A forwarded domain shows Redirects to and the target domain.

While a domain shows Configure DNS, Check status is a button on its row. When the DNS works, click ⋮ on a row for these actions:

ActionWhat it does
Make primaryUse this domain in sitemap.xml and as the live site URL
Check statusCheck the DNS records again, and if the domain is active
Forward this domainSend visitors to another domain, for example from example.com to www.example.com. Select the target in Redirect to, then click Save.
Remove domainRemove the domain from the project. The domain stays at your registrar.

Add a domain

  1. In Custom domain, type the domain, for example example.com.
  2. Click Add domain.
  3. Add the DNS records at your domain provider.

Decide if you use www. or not. Search engines read example.com and www.example.com as two different sites.

For the full procedure, see Link a custom domain. For a staging domain, see Staging.

Trailing slashes

Open Advanced under the domains to set Trailing slashes on canonical URLs. With this setting on, page addresses end with /, for example /about/.

Sitemap

Open Advanced at the bottom of the tab.

In Exclude patterns, type one pattern on each line, for example /draft/*. Pages that match a pattern are not in sitemap.xml.