Snapvisor Docs
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

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).

main
{main,production}
release/**

Why it matters

The environment classification drives how a deployment is labelled and how access protection applies — production custom domains can be exempted from login protection while previews stay locked down.

On this page