import type { Metadata } from "next"; import { notFound } from "next/navigation"; import { listBenchmarks } from "@/lib/benchmarks"; import { getDeployment } from "@/lib/deployments"; import { DeploymentDetail } from "./deployment-detail"; export const dynamic = "force-dynamic"; export async function generateMetadata({ params }: PageProps<"/deployments/[id]">): Promise { const d = await getDeployment((await params).id); return { title: d ? d.name : "Deployment" }; } export default async function DeploymentPage({ params }: PageProps<"/deployments/[id]">) { const { id } = await params; const [d, runs] = await Promise.all([getDeployment(id), listBenchmarks({ deploymentId: id })]); if (!d) notFound(); return ; }