Ben Senescu 622a86e3dc website: terms + privacy policy (#56)
* 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
2026-04-08 14:09:01 -04:00

14 lines
577 B
TypeScript

import { loader } from "fumadocs-core/source";
// Keep this server runtime import explicit. In this app's SSR build, the
// public Vite runtime entry resolves to the browser variant for sourceAsync.
import { fromConfig } from "../../node_modules/fumadocs-mdx/dist/runtime/vite/server.js";
import { blog } from "../../source.generated";
import type * as Config from "../../source.config";
const serverCreate = fromConfig<typeof Config>();
export const blogSource = loader({
source: await serverCreate.sourceAsync(blog, {} as Record<string, never>),
baseUrl: "/blogs",
});