mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
Fix types
This commit is contained in:
parent
4fd5da2ae8
commit
5c2b738f36
@ -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("/");
|
||||
|
||||
@ -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';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user