From 16c0f07e5998ab3822286bed59bb1234dd62fdb9 Mon Sep 17 00:00:00 2001 From: giancarlo Date: Tue, 4 Jun 2024 02:12:39 +0700 Subject: [PATCH] Update collection type for content retrieval Changed the collection type from 'pages' to 'documentation' when getting content by slug in the marketing docs page. This change is intended to target the correct content segment in the CMS client function. --- apps/web/app/(marketing)/docs/[...slug]/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/app/(marketing)/docs/[...slug]/page.tsx b/apps/web/app/(marketing)/docs/[...slug]/page.tsx index 484485d21..b07fd4c4c 100644 --- a/apps/web/app/(marketing)/docs/[...slug]/page.tsx +++ b/apps/web/app/(marketing)/docs/[...slug]/page.tsx @@ -17,7 +17,7 @@ const getPageBySlug = cache(pageLoader); async function pageLoader(slug: string) { const client = await createCmsClient(); - return client.getContentItemBySlug({ slug, collection: 'pages' }); + return client.getContentItemBySlug({ slug, collection: 'documentation' }); } interface PageParams {