We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5625100 commit 37340cfCopy full SHA for 37340cf
apps/baseai.dev/src/app/learn/[section]/layout.tsx
@@ -1,4 +1,4 @@
1
-import { getDocsBySlug } from "@/lib/get-docs-by-slug";
+import { getLearnBySlug } from "@/lib/get-learn-by-slug";
2
import { FrontmatterT } from "@/types/markdown";
3
4
export async function generateMetadata({
@@ -9,7 +9,7 @@ export async function generateMetadata({
9
let frontmatter: FrontmatterT;
10
11
if (process.env.NODE_ENV === 'production') {
12
- const data = await getDocsBySlug({
+ const data = await getLearnBySlug({
13
section: 'learn',
14
slug: params.section
15
});
0 commit comments