svrjs-nextjs-website/app/(root)/downloads/layout.tsx
Dorian Niemiec e80269591c
Some checks failed
Deploy Next.js application / deploy (push) Failing after 10m6s
feat: add canonical URLs
2024-11-25 07:11:36 +01:00

41 lines
1.4 KiB
TypeScript

import { Metadata } from "next";
// baseURL [ENV]
export const metadata: Metadata = {
title: "Downloads - SVR.JS",
description:
"Ready to get started with SVR.JS? Visit our downloads page to access the latest stable releases, nightly builds, and archived versions. Find the right fit for your needs today!",
alternates: { canonical: `${process.env.NEXT_PUBLIC_WEBSITE_URL}/downloads` },
openGraph: {
title: "Downloads - SVR.JS",
description:
"Ready to get started with SVR.JS? Visit our downloads page to access the latest stable releases, nightly builds, and archived versions. Find the right fit for your needs today!",
url: `${process.env.NEXT_PUBLIC_WEBSITE_URL}/downloads`,
type: "website",
images: [
{
url: `${process.env.NEXT_PUBLIC_WEBSITE_URL}/metadata/svrjs-cover.png`,
width: 800,
height: 600,
alt: "Downloads - SVR.JS"
}
]
},
twitter: {
card: "summary_large_image",
site: "@SVR_JS",
title: "Downloads - SVR.JS",
description:
"Ready to get started with SVR.JS? Visit our downloads page to access the latest stable releases, nightly builds, and archived versions. Find the right fit for your needs today!",
images: [`${process.env.NEXT_PUBLIC_WEBSITE_URL}/metadata/svrjs-cover.png`],
creator: "@SVR_JS"
}
};
export default function DownloadLayout({
children
}: {
children: React.ReactNode;
}) {
return <main>{children}</main>;
}