2026-09-25 21:51:12 +02:00
|
|
|
import type { Metadata } from "next"
|
|
|
|
|
import { getTranslations, setRequestLocale } from "next-intl/server"
|
|
|
|
|
import { DocPage } from "@/components/docs/DocBlocks"
|
|
|
|
|
|
|
|
|
|
const NAMESPACE = "docs.ociManager.customImage"
|
|
|
|
|
const URL = "https://proxmenux.com/docs/oci-manager/custom-image"
|
|
|
|
|
|
2026-10-12 22:29:08 +02:00
|
|
|
const LINKS = {
|
|
|
|
|
readmeLink: "https://github.com/MacRimi/ProxMenux/blob/main/oci/README.md#the-oci-compose-block-by-block",
|
|
|
|
|
}
|
|
|
|
|
|
2026-09-25 21:51:12 +02:00
|
|
|
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)
|
2026-10-12 22:29:08 +02:00
|
|
|
return <DocPage locale={locale} namespace={NAMESPACE} minutes={7} links={LINKS} />
|
2026-09-25 21:51:12 +02:00
|
|
|
}
|