feat: add openGraph metadata

This commit is contained in:
Kentai Radiquum 2024-08-04 16:28:41 +05:00
parent a5c19eadea
commit 8afa3ef664
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
12 changed files with 100 additions and 34 deletions

View file

@ -3,11 +3,35 @@ import { App } from "./App";
import { ThemeModeScript } from "flowbite-react";
export const metadata = {
title: {
template: 'AniX | %s',
default: 'AniX',
keywords: ["anix", "anixart", "anime", "аниксарт", "аниме"],
formatDetection: {
email: false,
address: false,
telephone: false,
},
title: {
template: "AniX | %s",
default: "AniX | Домашняя",
},
description: "Неофициальное приложение для anixart.tv",
openGraph: {
url: process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}`
: `http://localhost:${process.env.PORT || 3000}`,
images: [
{
url: `${
process.env.VERCEL_URL
? "https://" + process.env.VERCEL_URL
: "http://localhost:" + process.env.PORT || 3000
}/opengraph.png`, // Must be an absolute URL
width: 800,
height: 600,
},
],
locale: "ru_RU",
type: "website",
},
description: "Generated by create next app",
};
export default function RootLayout({ children }) {