mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-11-02 10:52:22 +00:00
31 lines
1.1 KiB
TypeScript
31 lines
1.1 KiB
TypeScript
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} />
|
||
|
|
}
|