Convex.PreviewDeployKey reference
PreviewDeployKey
Section titled “PreviewDeployKey”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.
PreviewDeployKey: Rotation
Section titled “PreviewDeployKey: Rotation”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.
PreviewDeployKey: Creating a key
Section titled “PreviewDeployKey: Creating a key”const key = yield* Convex.PreviewDeployKey("Preview", { project });