Fix types

This commit is contained in:
Konstantin Wohlwend 2025-08-01 15:22:04 -07:00
parent 4fd5da2ae8
commit 5c2b738f36
2 changed files with 3 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import {
import { getMDXComponents } from '@/mdx-components';
import { createRelativeLink } from 'fumadocs-ui/mdx';
import { source } from 'lib/source';
import { Metadata } from 'next';
import { redirect } from 'next/navigation';
export default async function Page(props: {
@ -49,7 +50,7 @@ export async function generateStaticParams() {
export async function generateMetadata(props: {
params: Promise<{ slug?: string[] }>,
}) {
}): Promise<Metadata> {
const params = await props.params;
const page = source.getPage(params.slug);
if (!page) redirect("/");

View File

@ -1,3 +1,4 @@
import { redirect } from 'next/navigation';
import { NextResponse, type NextRequest } from 'next/server';
import { getLLMText } from '../../../../lib/get-llm-text';
import { apiSource, source } from '../../../../lib/source';