LivePreviewServerUrlResolver
LivePreviewServerUrlResolver<
TDoc> =object["bivariantResolve"]
Defined in: packages/core/src/livePreview/types.ts:68
A preview-URL resolver that runs on Convex with a real ctx.
Authored in the CLIENT config, beside the collection it belongs to — exactly
as a field’s validate() callback is, and for the same reason: the server
config wraps the client config, so convex/vex.ts can reach it. The closure
is therefore bundled into the browser even though it never runs there, so it
must not capture secrets.
ctx is the project’s own VexQueryCtx, read from the vex generate
augmentation — no type parameter, because a project has exactly one data
model and a callback always runs against it.
Type Parameters
Section titled “Type Parameters”TDoc extends Partial<VexDocument> = Partial<VexDocument>
The document as currently known: saved fields merged with the editor’s unsaved form values.