Skip to content

Commit 6436b78

Browse files
remove dynamic metadata
1 parent 43630f6 commit 6436b78

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/app/[username]/[repo]/page.tsx

-20
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,6 @@ import MainCard from "~/components/main-card";
55
import Loading from "~/components/loading";
66
import MermaidChart from "~/components/mermaid-diagram";
77
import { useDiagram } from "~/hooks/useDiagram";
8-
import { type Metadata } from "next";
9-
10-
type Props = {
11-
params: { username: string; repo: string };
12-
};
13-
14-
// Dynamic metadata for each repository
15-
export async function generateMetadata({ params }: Props): Promise<Metadata> {
16-
const title = `${params.repo} - GitDiagram Visualization`;
17-
const description = `Interactive diagram visualization for ${params.username}/${params.repo} GitHub repository`;
18-
19-
return {
20-
title,
21-
description,
22-
openGraph: {
23-
title,
24-
description,
25-
},
26-
};
27-
}
288

299
export default function Repo() {
3010
const params = useParams<{ username: string; repo: string }>();

0 commit comments

Comments
 (0)