feat: update docs website

This commit is contained in:
Mauricio Siu
2024-11-09 23:17:00 -06:00
parent 179e97dd56
commit 010ea99f76
10 changed files with 28 additions and 69 deletions

View File

@@ -8,14 +8,16 @@ import {
DocsPage,
DocsTitle,
} from "fumadocs-ui/page";
import { notFound } from "next/navigation";
import { notFound, permanentRedirect } from "next/navigation";
export default async function Page(props: {
params: Promise<{ slug?: string[] }>;
}) {
const params = await props.params;
const page = source.getPage(params.slug);
if (!page) notFound();
if (!page) {
permanentRedirect("/docs/core");
}
const MDX = page.data.body;