# Environments

Canonical: https://snapvisor.io/docs/learn/deployments/environments

> Choose which branches Snapvisor treats as production deployments versus previews, using a glob pattern on the branch name.



Snapvisor splits deployments into production and preview. A branch pattern decides which is which.

## Production deployment branch [#production-deployment-branch]

Any deployment from a branch that matches the **production deployment branch** pattern is treated as a production deployment; everything else is a preview. The pattern is a glob and defaults to your repository's default branch (falling back to `main`).

```text
main
{main,production}
release/**
```

## Why it matters [#why-it-matters]

The environment classification drives how a deployment is labelled and how [access protection](/learn/deployments/access-protection) applies — production custom domains can be exempted from login protection while previews stay locked down.

