Documentation
Preview environments
Get a full, isolated copy of your service for every pull request, with its own URL.
With previews enabled, every pull request gets its own copy of the service built from the PR branch, at https://<name>-pr-<number>.rebasable.com. The preview URL shows up in the dashboard and on the pull request’s deployment status, and it updates on every push.
Enable previews
Settings → Pull request previews:
- Automatic: a preview for every PR.
- Manual: only when you click Create preview (or run it from the API).
- Off.
Previews are available on every workspace plan, including the free Hobby plan.
How previews behave
- They use the service’s settings and environment variables.
IS_PULL_REQUEST=trueis set, so your app can tell it is a preview. - They are deleted when the PR is merged or closed, or after the expiry you configure.
- Previews are billed like any service, prorated by the second, and count against your spend cap. Use the Free or Starter instance type to keep them cheap.
Databases in previews
Point previews at a staging database by overriding DATABASE_URL for previews, or seed a fresh database in the pre-deploy command.