feat: move to nextjs

This commit is contained in:
apoorvlathey
2024-05-07 00:18:18 +10:00
parent 602ae4389e
commit 032785a316
49 changed files with 9867 additions and 8425 deletions

28
utils/index.ts Normal file
View File

@@ -0,0 +1,28 @@
import { Metadata } from "next";
export const getMetadata = (_metadata: {
title: string;
description: string;
images: string;
}) => {
const metadata: Metadata = {
title: _metadata.title,
description: _metadata.description,
twitter: {
card: "summary_large_image",
creator: "@apoorvlathey",
title: _metadata.title,
description: _metadata.description,
images: _metadata.images,
},
openGraph: {
type: "website",
title: _metadata.title,
description: _metadata.description,
images: _metadata.images,
},
robots: "index, follow",
};
return metadata;
};