CustomDomain
Source:
src/Prisma/CustomDomain.ts
A Prisma app custom domain.
Domains can only attach to Apps on the project’s current default branch.
Creating this resource starts asynchronous DNS and certificate provisioning;
configure the returned dnsRecords and inspect status, foundryStatus,
and failureReason before routing production traffic.
App and hostname changes are intentionally rejected because the Management API cannot replace a live domain atomically. Create a second resource, verify DNS and TLS, cut traffic over, and then remove the old resource.
Creating a Custom Domain
Section titled “Creating a Custom Domain”const domain = yield* Prisma.CustomDomain("api-domain", { app: api.appId, hostname: "api.example.com",});