> ## Documentation Index
> Fetch the complete documentation index at: https://developers.zite.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Publishing

> How Zite apps go live: publishing, versions and rollback, custom domains, and audit logs.

Publishing takes an app's latest successful build live. Every commit produces a versioned build and
snapshot, so shipping is safe and reversible.

## From commit to live

**1. Commit**

A `commit` validates the workspace config, pushes to the workspace repo, and
builds a **snapshot** in the background. Each
commit is a version.

**2. Publish**

`publish_app` pins the latest **successful** build as the published version. If the build is still
running or failed, publishing is blocked until it's green.

**3. Serve**

The app deploys to an edge worker at `https://<subdomain>.zite.so` (or your custom domain). External
apps are public; internal apps require signing in with Zite.

You publish by asking an agent (`publish_app`) or from the editor.

## Internal vs external

> [card] Internal apps
>
> Open only to the organization members you give access to, who sign in with Zite. Served at
> `https://<subdomain>.zite.so` (or your custom domain).

> [card] External apps
>
> Deployed to a public edge worker at `https://<subdomain>.zite.so` (or your custom domain), with the
> app's sign-in for its users.

Changing an app's [access mode](https://developers.zite.com/framework/access-and-sign-in.md) between internal and external is a confirmed
action.

## Versions & rollback

Every version is backed by a commit and its snapshot. From the **version history** (the history icon in the
header of the editor's chat panel) you can:

* Browse previous versions and preview them.
* **Restore** an earlier version to roll back. Restoring creates a new version with that version's contents,
  so the later versions stay in the history.

Because each build carries its commit, you always know exactly what's live.

## Custom domains

By default an app is served at its app ID on `zite.so`. Once an app is published, its **Settings** →
**Link** tab lets you set:

* A **custom Zite subdomain**, such as `yourname.zite.so`.
* A **custom domain** you own, on the Pro plan (one domain) or Business and above. Point a subdomain at Zite
  with a CNAME record, or a root domain with A records (plus a CNAME for `www`); the tab shows the exact
  records. TLS is handled automatically.

## Audit logs

On Enterprise, Zite records an audit trail at the organization level, including publishes, so you can see
who changed what and when. Admins find it under **Settings** → **Audit logs**.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.