The Publishing tab connects the site to GitHub and to 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.
| Step | What it is |
|---|---|
| GitHub | The GitHub account that keeps the site files |
| Project | The GitHub repository of the site |
| Hosting | Vercel, or Manual hosting for another host |
| Vercel | The Vercel account |
| Project | The 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.xmland 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:
| Action | What it does |
|---|---|
| Make primary | Use this domain in sitemap.xml and as the live site URL |
| Check status | Check the DNS records again, and if the domain is active |
| Forward this domain | Send visitors to another domain, for example from example.com to www.example.com. Select the target in Redirect to, then click Save. |
| Remove domain | Remove the domain from the project. The domain stays at your registrar. |
Add a domain
- In Custom domain, type the domain, for example
example.com. - Click Add domain.
- 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.