Published on
Preview environments: validate every pull request before publishing
Each pull request gets a temporary URL without touching the main application.
What a Preview environment is
A Preview environment is a temporary copy of your project running the version under review. It has its own URL and stays separate from the application your customers use, so your team can test and share the change before publishing.
Native GitHub previews
For GitHub projects, enable Preview environments and GitHub previews in the project Previews tab and choose the target branch. No workflow, API key, or image in the repository is needed.
- Opening, reopening, or updating the pull request creates or updates the pr-<number> preview
- Closing the pull request removes the preview
- Pull requests from forks or to other branches are not part of the native flow
Previews from images
If you already publish a container image, use the official Zenifra GitHub Action to create, update, and remove previews with the same key on each pull request event.
Costs under control
Set the plan, time to live, and preview limit for the project. Before enabling it, estimate the cost in the calculator.