Skip to content

Overview

Introduced in v1.12.0

Preview environments let you spin up ephemeral copies of your apps for testing and review.
They are ideal when you want to:

  • Test features in isolation before merging to production
  • Run product experiments or proofs of concept
  • Conduct A/B testing with real services
  • Share a working feature branch with your team or stakeholders

When you create a preview environment:

  • All services from a base environment (production by default) are cloned into a new environment.
  • Service configuration and environment variables are preserved.
  • Volumes are not cloned. Instead, fresh volumes are created to ensure data stays isolated between environments.

You can control which services get cloned by defining a preview template.
This allows you to include only the services needed for your feature or experiment.

There are two ways to create a preview environment:

  1. Via API — programmatically spin up previews for custom workflows. See API guide.
  2. Via Pull Request — automatically create a preview when opening or updating a PR. See PR integration.