MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / LearnPage

Function LearnPage

apps/baseai.dev/src/app/learn/page.tsx:5–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import { ContentT } from '@/types/markdown';
4
5export default async function LearnPage() {
6 let content: ContentT;
7
8 if (process.env.NODE_ENV === 'production') {
9 const data = await getLearnBySlug({
10 slug: 'index',
11 section: 'learn',
12 });
13
14 content = data.content;
15 } else {
16 // dynamically import the file
17 const { getContentBySlugOnDev } = await import('@/lib/get-content-by-slug-on-dev');
18
19 const data = await getContentBySlugOnDev({
20 section: 'learn',
21 slug: 'index',
22 type: 'learn'
23 });
24
25 content = data.content;
26 }
27
28 return <Content content={content} />;
29}

Callers

nothing calls this directly

Calls 2

getLearnBySlugFunction · 0.90
getContentBySlugOnDevFunction · 0.85

Tested by

no test coverage detected