Skip to content

Convex.PreviewDeployKey reference

Source: packages/convex/src/PreviewDeployKey.ts

A preview deploy key. Set it as CONVEX_DEPLOY_KEY and convex deploy --preview-create <name> creates a preview, which suits a hosting provider’s build step.

Convex shows a key only when it is created, so adopting an existing key deletes it and creates a new one with the same name.

const key = yield* Convex.PreviewDeployKey("Preview", { project });