Files

31 lines
1.1 KiB
TypeScript
Raw Permalink Normal View History

import type { Metadata } from "next"
import { getTranslations, setRequestLocale } from "next-intl/server"
import { DocPage } from "@/components/docs/DocBlocks"
const NAMESPACE = "docs.ociManager.monitor"
const URL = "https://proxmenux.com/docs/oci-manager/monitor"
const LINKS = {
appLink: "/docs/monitor/dashboard/vms-lxcs/app",
notificationsLink: "/docs/monitor/notifications",
lifecycleLink: "/docs/oci-manager/lifecycle",
mountsLink: "/docs/monitor/dashboard/vms-lxcs",
}
export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }): Promise<Metadata> {
const { locale } = await params
const t = await getTranslations({ locale, namespace: `${NAMESPACE}.meta` })
return {
title: t("title"),
description: t("description"),
alternates: { canonical: URL },
openGraph: { title: t("title"), description: t("description"), type: "article", url: URL },
}
}
export default async function Page({ params }: { params: Promise<{ locale: string }> }) {
const { locale } = await params
setRequestLocale(locale)
return <DocPage locale={locale} namespace={NAMESPACE} minutes={6} links={LINKS} />
}