Publishing to Sanity
Sanity is a drafts-only destination by design. WordPresto creates and updates drafts; your team publishes from Sanity Studio, so your existing review flow stays in charge of what goes live.
Connecting
Section titled “Connecting”Connecting Sanity is an ordinary OAuth sign-in against Sanity’s own hosted service — you authorise WordPresto the way you would authorise any app, and you can revoke it the same way.
There is nothing to paste. WordPresto registers itself with Sanity’s authorization server the first time anyone connects, so there is no client id or secret for you to obtain, and no long-lived token copied into a settings box. The round trip is protected end to end, and the connection is attached to the user who started it — a tampered or expired sign-in cannot attach a connection to someone else.
Connections are per user. Project Settings → Destinations shows whether you are connected, and as whom.
Choosing the site and dataset
Section titled “Choosing the site and dataset”After connecting, the project and dataset pickers list your real Sanity projects and datasets, read from the connected account. Nothing is typed in from memory and nothing is offered that does not exist.
Schema detection
Section titled “Schema detection”WordPresto reads your actual document schema to work out which document type to write and which fields to map — the title field, the body field, and the rest. It detects; it never guesses. When the schema makes the answer unambiguous, the mapping is saved so you do not repeat it.
If the schema is ambiguous, or a required field cannot be resolved, you are told exactly which document type or field is missing rather than being handed a write that would land in the wrong place.
Round trips return to the same fields
Section titled “Round trips return to the same fields”If a document came from Sanity into the Canvas, publishing it back goes to the fields it came from, even with no mapping configured. A Sanity → Canvas → Sanity loop returns to where it started rather than creating a parallel copy in default fields.
Drafts, always
Section titled “Drafts, always”Every write is a draft — created if the document is new, updated if it already exists. WordPresto does not publish a Sanity document live, so nothing reaches your public dataset without someone pressing publish in Studio.
The approval gate
Section titled “The approval gate”The same gate applies as everywhere else: the Canvas document must be approved before a draft is written. Approval is checked when the write happens, not when the button is drawn, so an edit after approval cannot slip through on a stale screen.
