Preview Environments

Every pull request gets its own cloud environment. Reviewers can test changes against real infrastructure before approving, catching issues that unit tests miss.

Full environments for every PR

Each preview environment includes isolated databases, dedicated pub/sub topics, and separate infrastructure. Test changes against real services before merging.

  • Isolated PostgreSQL databases
  • Dedicated pub/sub topics
  • Environment-specific secrets
  • Automatic cleanup on merge
GitHub PR with Encore preview environment link

Test in production-like environments

When you open a pull request, Encore automatically creates a dedicated cloud environment with its own databases, queues, and infrastructure. The PR gets a comment with a link to the live environment.

Reviewers can click through the app, test API changes with real data, and verify database migrations work correctly. No more "works on my machine" surprises after merging.

~2min
to spin up
100%
isolated
Each preview environment includes:
  • Isolated PostgreSQL databases
  • Dedicated pub/sub topics
  • Separate cron job schedules
  • Environment-specific secrets
  • Full tracing and metrics
  • Automatic cleanup on merge

Test with realistic data

Preview environments can be configured to start with seed data, clone data from staging, or start fresh. This means you can test database migrations against real schemas and verify your changes work with actual data shapes.

Preview environments can:
  • Start with empty databases for testing migrations
  • Clone data from staging for realistic testing
  • Run seed scripts to create test data
  • Use production-like data volumes for performance testing
Preview environment branches in Encore

Automatic cleanup, no wasted spend

Preview environments are created when PRs open and automatically destroyed when PRs close or merge. No more forgotten staging environments running up cloud bills.

Resources scale to zero when not in use, so you only pay for what you actually use during testing.

Lifecycle Management

Preview environments are created when PRs open and automatically destroyed when PRs close or merge. No more forgotten staging environments running up cloud bills.

1
PR Opened
Environment created automatically
2
Active Development
Resources scale to zero when idle
3
PR Merged/Closed
Environment destroyed immediately
Trusted by teams at
GrouponPaveBookshop.orgCoinbase

Catch bugs before they merge

Preview environments for every PR, automatically.