Skip to content

docs(compute): custom domains are added before DNS is set up - #8897

Merged
wmadden-electric merged 2 commits into
mainfrom
docs/service-domain-hostname-states
Nov 23, 2026
Merged

wmadden-electric merged 2 commits into
mainfrom
docs/service-domain-hostname-states

Conversation

@wmadden-electric

@wmadden-electric wmadden-electric commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Hold until the prisma release that contains prisma/prisma-cli#400 is published. prisma@latest is 8.0.0-rc.34 today, which still has the old behaviour; these pages describe the next release.

The Domains page told readers that adding a custom domain fails until DNS is right:

Registration verifies DNS up front. If the CNAME record isn't visible yet, the command fails with a DOMAIN_DNS_NOT_CONFIGURED error … Once the CNAME record has propagated, re-run service domain add.

After prisma/prisma-cli#400, add succeeds at once and prints two records to publish:

$ prisma service domain add shop.acme.com --service web
hostname    shop.acme.com
status      pending
state       not_verified
waiting on  Proof in DNS that this workspace owns the domain.
dns TXT     _prisma-verification.shop.acme.com -> prisma-verification=3f9a… (ttl 300)
dns CNAME   shop.acme.com -> switchboard.cdg.prisma.build (ttl 300)

What changes on the pages

compute/domains.mdx is rewritten around the new flow:

  1. Add the domain. It succeeds before DNS exists.
  2. Publish both records: a TXT record that proves the workspace owns the domain, and the CNAME that routes it. The TXT record is new to this page.
  3. Run wait, which returns once the domain serves. There is no second add.

It also gains a "Check a domain" section for show and retry, a table of the ten states a domain can be in with what to do in each, and a short section on how a failed certificate is reported. The old four-value status table and the codes DOMAIN_DNS_NOT_CONFIGURED and DOMAIN_RETRY_NOT_ELIGIBLE, which no longer exist, are gone.

cli/service.mdx: the five service domain rows describe what each command does now.

compute/faq.mdx and compute/limitations.mdx: they no longer say the service needs a promoted version before a domain can be added, and they mention the TXT record.

Two errors on the old page, fixed in passing

Not in this change

  • cli/error-reference.mdx is generated from the CLI repository by a workflow and updates itself.
  • Whether custom domains are production-only. The pages still say so. docs(compute): document custom domains on branches #8514 is about that and touches the same files, so one of the two will need a rebase.
  • The Alchemy and Composer pages, which describe tools that still use the old API.

Checks

I did not install or build the site locally. Each statement about the commands was checked by a reviewer against the CLI's main branch and the platform's reference docs, and internal links were checked by reading the target pages. CI runs the link linter.

Agent: monet-19

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Updated custom-domain setup guidance to cover both TXT ownership verification and CNAME routing records, including DNS propagation and TLS issuance.
    • Clarified that domains can be added before DNS is configured or a production version is promoted.
    • Expanded command guidance for viewing pending DNS records, waiting for domain readiness, retrying failed certificates, and confirming deletion.
    • Documented domain status and state meanings, failure guidance, and updated limits.

wmadden-electric and others added 2 commits November 23, 2026 17:26
prisma service domain add now succeeds at once and prints a TXT and a
CNAME record to publish; show and wait report a state. Follows
prisma/prisma-cli#400.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
blog Ready Ready Preview Nov 23, 2026 6:33am UTC
docs Ready Ready Preview Nov 23, 2026 6:33am UTC
eclipse Ready Ready Preview Nov 23, 2026 6:33am UTC
site Ready Ready Preview Nov 23, 2026 6:33am UTC
1 Skipped Deployment
Project Deployment Actions Updated
handbook Skipped Skipped Nov 23, 2026 6:33am UTC

Request Review

@vercel
vercel Bot temporarily deployed to Preview – handbook November 23, 2026 06:31 Inactive
@prisma-gizmo

prisma-gizmo Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

✅ Gizmo reviewed e12bb01 — posted 0 inline comment(s) this pass.

Open findings: none

Change walkthrough

This PR rewrites the Compute custom-domains documentation around the post-prisma/prisma-cli#400 flow, in which service domain add succeeds before any DNS exists and prints a TXT ownership record plus a CNAME, replacing the old "registration verifies DNS up front, re-run add after propagation" story. It is held until the prisma release containing that CLI change ships.

compute/domains.mdx — The core rewrite. The three steps are now add → publish both records (TXT and CNAME) → wait; a new note explains the TXT record proves workspace ownership, that it is shared per workspace, and that removing it stops the domain after 30 days. A new "Check a domain" section covers show/retry and the retry rate limit; the old status table gives way to a ten-state table (not_verified through active) with remedies, plus a section on how certificate failure reasons are printed. The obsolete DOMAIN_DNS_NOT_CONFIGURED and DOMAIN_RETRY_NOT_ELIGIBLE codes are gone, and all remaining codes use the correct SERVICE. prefix. The remove/--yes mistake is fixed to delete/--confirm <hostname>.

cli/service.mdx — The five service domain reference rows are reworded to match: add succeeds before DNS, wait stops early on certificate_failed/no_service, and delete documents --confirm.

compute/faq.mdx and compute/limitations.mdx — Both drop the "needs a promoted version first" requirement (domains can be added before a live deployment and start serving once one exists) and mention the TXT record.

Consistency with the rest of the docs — Internal anchors (#states, /cli/service#service-domain) resolve; no hand-written page still references the removed codes, service domain remove, or the CNAME-only flow. The generated cli/error-reference.mdx still lists the retired codes and not yet SERVICE.DOMAIN_RETRY_RATE_LIMITED, as the PR description expects of a generated file that refreshes with the release. The Composer pages keep the old API's flow, which the PR explicitly scopes out. The production-only claim is left untouched for #8514 to settle, so one of the two PRs will need a rebase.

@github-actions

Copy link
Copy Markdown
Contributor

🍈 Lychee Link Check Report

147 links: ✅ 62 OK | 🚫 0 errors | 🔀 23 redirects | 👻 85 excluded

✅ All links are working!


Full Statistics Table
Status Count
✅ Successful 62
🔀 Redirected 23
👻 Excluded 85
🚫 Errors 0
⛔ Unsupported 0
⏳ Timeouts 0
❓ Unknown 0

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The CLI reference, domains guide, FAQ, and limitations page now describe custom-domain setup and lifecycle operations. The documentation covers TXT and CNAME records, domain states, wait and retry behavior, deletion confirmation, and limits.

Changes

Custom Domain Documentation

Layer / File(s) Summary
Domain setup and DNS records
apps/docs/content/docs/compute/domains.mdx, apps/docs/content/docs/compute/faq.mdx, apps/docs/content/docs/compute/limitations.mdx
The documentation describes adding domains before DNS setup, publishing TXT ownership and CNAME routing records, and the requirements for a domain to serve.
Domain checks and lifecycle states
apps/docs/content/docs/cli/service.mdx, apps/docs/content/docs/compute/domains.mdx
The CLI reference and guide describe wait, show, and retry behavior, domain status and state values, and certificate failure reporting.
Deletion and domain limits
apps/docs/content/docs/compute/domains.mdx
The guide documents hostname confirmation for deletion, DNS records that remain after deletion, and the updated quota error name.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: ankur-arch, tylerhogarth

Merge Risk: Low · up to e12bb

These docs describe a new custom-domain setup flow in which add succeeds before DNS is configured. That flow only works with a CLI release that includes the change. If the pages go live before that release is published, readers on the old CLI will see add reject missing DNS. Hold the merge until the release is out, as the author already intends.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the docs change for the compute custom-domain flow, which is the main change in the PR: the docs now say a custom domain is added before DNS is configured. The changed files (domains.m…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the docs change for the compute custom-domain flow, which is the main change in the PR: the docs now say a custom domain is added before DNS is configured. The changed files (domains.mdx, faq.mdx, limitations.mdx, cli/service.mdx) all cover this flow. The title is short, specific, and follows the conventional type(scope) form.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bf12486b-5c15-4c3b-b6bc-c86d642d3634
Commits

Reviewing files that changed from the base of the PR and between 8434742 and e12bb01.

Files selected for processing: 4

  • apps/docs/content/docs/cli/service.mdx
  • apps/docs/content/docs/compute/domains.mdx
  • apps/docs/content/docs/compute/faq.mdx
  • apps/docs/content/docs/compute/limitations.mdx

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

@prisma-gizmo prisma-gizmo Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New findings: none · trace

@prisma-gizmo prisma-gizmo Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No Gizmo finding is open and the head commit has been reviewed. Approving.

@wmadden-electric
wmadden-electric merged commit 0157c99 into main Nov 23, 2026
36 checks passed
@wmadden-electric
wmadden-electric deleted the docs/service-domain-hostname-states branch November 23, 2026 12:09

This branch was successfully deployed

5 active and 1 inactive deployments
Preview – docs — e12bb01d Deployed Nov 23, 2026 by vercel[bot]
Preview – blog — e12bb01d Deployed Nov 23, 2026 by vercel[bot]
Preview – site — e12bb01d Deployed Nov 23, 2026 by vercel[bot]
Preview – eclipse — e12bb01d Deployed Nov 23, 2026 by vercel[bot]
Preview – handbook — e12bb01d Deployed Nov 23, 2026 by vercel[bot]
prisma-preview/docs/service-domain-hostname-states — e12bb01d Deployed Nov 23, 2026 by wmadden-electric via deploy #1424
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants