* feat: add markdown-backed legal pages Move privacy into the Fumadocs content pipeline and add a terms page so legal copy can be managed as markdown alongside other generated pages. * save terms draft * clean up notes * Add privacy policy * Update policies * save * simplify legal page routes
26 lines
478 B
TypeScript
26 lines
478 B
TypeScript
import {
|
|
defineConfig,
|
|
defineCollections,
|
|
frontmatterSchema,
|
|
} from "fumadocs-mdx/config/zod-3";
|
|
import { z } from "zod";
|
|
|
|
const pageSchema = frontmatterSchema as any;
|
|
|
|
export const blog = defineCollections({
|
|
type: "doc",
|
|
dir: "content/blog",
|
|
schema: pageSchema.extend({
|
|
author: z.string(),
|
|
date: z.string(),
|
|
}),
|
|
});
|
|
|
|
export const legal = defineCollections({
|
|
type: "doc",
|
|
dir: "content/legal",
|
|
schema: pageSchema,
|
|
});
|
|
|
|
export default defineConfig();
|