source.tsx•502 B
import { createMDXSource } from "fumadocs-mdx";
import type { InferPageType } from "fumadocs-core/source";
import { loader } from "fumadocs-core/source";
import { meta, docs, blog as blogPosts } from "@/.source";
const utils = loader({
baseUrl: "/docs",
source: createMDXSource(docs, meta),
});
export const { getPages, getPage, pageTree } = utils;
export const blog = loader({
baseUrl: "/blog",
source: createMDXSource(blogPosts, []),
});
export type BlogPage = InferPageType<typeof blog>;