Skip to main content
err:unkey:application:deployment_not_production
You asked to promote or roll back to a preview deployment. Only a deployment in a production can become the one serving your production hostname. You get HTTP 412.
Example response

Likely causes

  • The deployment ID is from a preview environment. Preview deployments have their own URLs and never serve the production hostname.

How to fix

  1. Deploy the same commit or image to the production environment with deployments.createDeployment.
  2. Promote that deployment.
To test a preview deployment, use its own URL. See Production and preview for how the two differ.
Last modified on October 6, 2026