From c7164d2d3704f2fa6776f8c8af0e9224406473e2 Mon Sep 17 00:00:00 2001 From: codingChewie Date: Wed, 22 Jul 2026 11:36:28 -0500 Subject: [PATCH] Use configured dataset in functions docs example --- skills/sanity-best-practices/references/functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skills/sanity-best-practices/references/functions.md b/skills/sanity-best-practices/references/functions.md index 818a8fd..c26bd9d 100644 --- a/skills/sanity-best-practices/references/functions.md +++ b/skills/sanity-best-practices/references/functions.md @@ -573,7 +573,7 @@ If not using `@sanity/client`, implement lineage tracking manually: export const handler = documentEventHandler(async ({ context, event }) => { const lineage = process.env.X_SANITY_LINEAGE - await fetch(`https://${context.clientOptions.projectId}.api.sanity.io/v2025-05-08/data/mutate/production`, { + await fetch(`https://${context.clientOptions.projectId}.api.sanity.io/v2025-05-08/data/mutate/${context.clientOptions.dataset}`, { method: 'POST', headers: { 'Content-Type': 'application/json',