Preview deployments
Each branch gets its own URL on the preview Worker, separate from production. Conic posts the link on the pull request.
A push to any branch other than the production branch makes a preview deployment. Previews are unlimited on all plans.
Where previews run
Each project has a preview Worker, separate from the production Worker. Each branch gets its own URL on the preview Worker:
https://<branch>-<project>-preview.<your-subdomain>.workers.dev
Each push to the branch updates its preview. A preview deployment never changes the production Worker or your custom domains.
Find the preview URL
Conic shows the URL in three places:
- In a comment on the pull request or merge request.
- In the commit status on GitHub or GitLab.
- In the Deployments list of the project.
Data in previews
By default, previews do not use your production resources. Each KV, D1, R2, queue and Vectorize binding gets one empty preview resource. Conic creates it the first time a preview needs it.
All previews of the project use the same preview resource. Branches do not get a resource each, so data that one branch writes is visible to the other branches.
To let previews use the production resource of a binding, change the binding to Same as production. See Bindings.
Variables in previews
Each environment variable has a production value and a preview value. The preview value can be the same as the production value, or different. See Environment variables.
Ship a preview
When a preview is correct, you can build its commit for production. See Promote and rollback.