From 6b241e513f08f2614b42877883e35b4e7403941f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90=E1=BB=8Bnh=20L=C3=AA?= Date: Mon, 23 Nov 2026 14:45:29 +0700 Subject: [PATCH] docs(client, openapi): fix the origin callback arguments in link examples The origin examples read path from the first argument, but it is the second. --- apps/content/docs/openapi/link.mdx | 2 +- apps/content/docs/rpc/link.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/content/docs/openapi/link.mdx b/apps/content/docs/openapi/link.mdx index 19b175cd8..5938ba0c4 100644 --- a/apps/content/docs/openapi/link.mdx +++ b/apps/content/docs/openapi/link.mdx @@ -126,7 +126,7 @@ Each option can also be a function to dynamically customize values per request. ```ts const link = new OpenAPILink(contract, { - origin: ({ path, context }) => { + origin: (options, path) => { if (path[0] === 'internal') { return 'https://internal.example.com' } diff --git a/apps/content/docs/rpc/link.mdx b/apps/content/docs/rpc/link.mdx index 614d9f3fe..d3c32b64c 100644 --- a/apps/content/docs/rpc/link.mdx +++ b/apps/content/docs/rpc/link.mdx @@ -133,7 +133,7 @@ Each option can also be a function to dynamically customize values per request. ```ts const link = new RPCLink({ - origin: ({ path, context }) => { + origin: (options, path) => { if (path[0] === 'internal') { return 'https://internal.example.com' }