Deploying your project

Deploying your project

Once your GitHub repo is connected, Orbit deploys your project automatically on every push. Here's how the full deploy cycle works.

How automatic deploys work

Whenever you push a commit to your production branch (usually main or master), Orbit:

  1. Receives a webhook from GitHub
  2. Queues a new build
  3. Installs dependencies (npm install / yarn install / pnpm install)
  4. Runs your build command (e.g. npm run build)
  5. Packages the output into a deployment artifact
  6. Serves the new version at your project URL

The whole process typically takes 1–3 minutes for most projects.

Watching a build in progress

While a build runs, the project overview shows a Building status badge and a live build log at the bottom of the page. You can watch the output line by line as it streams in.

Build statuses:

StatusMeaning
QueuedWaiting for a build slot
BuildingInstalling and building now
DeployingBuild done, new version being served
LiveDeployment active and serving traffic
FailedBuild or deploy error, see logs for details
CancelledDeployment was cancelled before completing

Triggering a manual redeploy

To redeploy the latest commit without pushing a new one:

  1. Open your project in Orbit
  2. Click Settings (top right of the project overview)
  3. Under Deploy hooks, create a hook and trigger it, or use the Redeploy button on the most recent deployment in the Deployments tab

Build settings

Orbit auto-detects your framework and sets sensible defaults for most projects. You can override any setting under Settings → Production environment:

FieldDefaultExamples
Build commandAuto-detectednpm run build, next build, vite build
Install commandAuto-detectednpm install, yarn, pnpm install
Output directoryAuto-detecteddist, .next, out, public
Node.js versionLatest LTS18, 20, 22
Root directoryRepository rootpackages/app (for monorepos)

Deploy locks

If you need to pause automatic deployments, during an incident, a scheduled maintenance window, or a code freeze, you can lock production:

  1. Open your project
  2. Click the Deploy Locked button in the project header
  3. Enter an optional reason

When locked, push-triggered deployments are skipped. A banner appears at the top of the project overview: "Production deploys are locked." Unlock the same way.

Require deploy approval

For sensitive projects, you can require a manual approval before any deployment goes live. Enable this in Settings → Deploy protection. Pending deployments show an Awaiting approval banner with Approve and Reject buttons.

Build cache

Orbit caches your node_modules between builds to speed up installs. When cache is available, the deployment detail page shows a cache hit indicator and a noticeably faster install time.

To force a clean install, go to Settings → Clear build cache and click Clear cache. The next deploy will run a full install.

Was this article helpful?

Still need help?

Our support team is here on business days, NZT.

Back to Help Centre