import type { Metadata } from "next"; import { deployPreset } from "@/lib/deployments"; import { DeploymentForm } from "../deployment-form"; import { formData } from "../form-data"; export const dynamic = "force-dynamic"; export const metadata: Metadata = { title: "New deployment" }; /** `?model=` (the library's "Deploy") preselects the model and a runtime that can serve it. */ export default async function NewDeploymentPage({ searchParams }: PageProps<"/deployments/new">) { const { model } = await searchParams; const [data, preset] = await Promise.all([formData(), typeof model === "string" ? deployPreset(model) : null]); return (

New deployment

); }