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.
This commit is contained in:
giancarlo
2024-06-04 02:12:39 +07:00
parent 86e4bdcc7a
commit 16c0f07e59

View File

@@ -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 {