From a49e63cd7ae43809de67bb940695eabeec315439 Mon Sep 17 00:00:00 2001 From: Tobias Arends Date: Fri, 27 Dec 2024 15:53:54 +0100 Subject: [PATCH] docs: fix arg name in live preview code example (#10127) Updates outdated code example to match the current docs and api. --- docs/live-preview/overview.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/live-preview/overview.mdx b/docs/live-preview/overview.mdx index 8b3db8946..2e80c2a58 100644 --- a/docs/live-preview/overview.mdx +++ b/docs/live-preview/overview.mdx @@ -88,10 +88,10 @@ const config = buildConfig({ // highlight-start url: ({ data, - documentInfo, + collectionConfig, locale }) => `${data.tenant.url}${ // Multi-tenant top-level domain - documentInfo.slug === 'posts' ? `/posts/${data.slug}` : `${data.slug !== 'home' : `/${data.slug}` : ''}` + collectionConfig.slug === 'posts' ? `/posts/${data.slug}` : `${data.slug !== 'home' : `/${data.slug}` : ''}` }${locale ? `?locale=${locale?.code}` : ''}`, // Localization query param collections: ['pages'], },