Skip to content

docs(docs): clarify Compute custom domain setup#8023

Open
ankur-arch wants to merge 1 commit into
mainfrom
dr-8710-compute-domains-docs-cover-production-branch-resolution
Open

docs(docs): clarify Compute custom domain setup#8023
ankur-arch wants to merge 1 commit into
mainfrom
dr-8710-compute-domains-docs-cover-production-branch-resolution

Conversation

@ankur-arch

@ankur-arch ankur-arch commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

What changed and why

Follow-up from setting up typescript-berlin.prisma.io on Compute — three gaps in /compute/domains caused avoidable friction:

  1. App must exist on the production branch first. An app with only preview-branch deployments makes app domain add fail with Selected app does not exist in the resolved project (not the documented BRANCH_NOT_DEPLOYABLE). Added a note and the app deploy --prod command to Before you start.
  2. App resolution follows the locally active branch. When local CLI state points at a preview branch, domain commands fail even though they "target the production branch". Added --branch main to every domain command example plus one sentence explaining why.
  3. CNAME details were underspecified. "The command prints a CNAME record" didn't answer what goes in the name vs. value fields at a DNS provider. Added a concrete example record (subdomain name, switchboard.fra.prisma.build value, TTL), a note that some providers want the FQDN, and where the record lives in --json output.

How it was tested

Content-only MDX change. Every command and error message was reproduced against a real Compute app today (CLI @prisma/cli@latest); the CNAME example mirrors the actual dnsRecords output.

Follow-ups / known limitations

  • If domain add is meant to resolve against the production branch regardless of local state, that's a CLI fix and the --branch guidance here can be simplified afterwards.

Linear: DR-8710

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Updated the custom domains guide to clarify that domain-related commands should target the production branch.
    • Added a warning explaining that domain setup can fail if the app has only been deployed to a preview branch.
    • Revised command examples to include the production branch option.

Linear: DR-8710

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 7, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
blog Ready Ready Preview, Comment Jul 7, 2026 7:31am
docs Ready Ready Preview, Comment Jul 7, 2026 7:31am
eclipse Ready Ready Preview, Comment Jul 7, 2026 7:31am
site Ready Ready Preview, Comment Jul 7, 2026 7:31am

Request Review

@coderabbitai

coderabbitai Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

Documentation for custom domains now requires targeting the production branch when running domain-related CLI commands. A warning is added explaining that domain add fails on preview-only deployments, and --branch main is added to domain add, domain wait, domain show, domain retry, and domain remove examples.

Changes

Domains documentation update

Layer / File(s) Summary
Production branch requirement and add example
apps/docs/content/docs/compute/domains.mdx
Adds a warning that domain add fails when the app only exists on a preview deployment, introduces a production deploy command, and updates the domain add/domain wait examples to include --branch main.
Check, retry, and remove examples updated
apps/docs/content/docs/compute/domains.mdx
Updates domain show, domain retry, and domain remove command examples to include --branch main.

Estimated code review effort: 1 (Trivial) | ~4 minutes

Related PRs: None identified.

Suggested labels: documentation

Suggested reviewers: None identified.

A rabbit hops through docs so neat,
Adding "--branch main" to every fleet,
Preview deploys once caused a fright,
Now warnings guide the flow just right,
Domains land safe, the docs complete! 🐇

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the documentation-focused change and summarizes the main goal of clarifying Compute custom domain setup.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

🍈 Lychee Link Check Report

2 links: ✅ 0 OK | 🚫 0 errors | 🔀 0 redirects | 👻 2 excluded

✅ All links are working!


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

@argos-ci

argos-ci Bot commented Jul 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ✅ No changes detected - Jul 7, 2026, 7:41 AM

@coderabbitai coderabbitai 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.

🧹 Nitpick comments (1)
apps/docs/content/docs/compute/domains.mdx (1)

19-34: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Slightly repetitive branch-requirement explanation.

The production-branch requirement is explained three times in close proximity (line 19's general rule, line 21's preview-only deploy note, and line 33's --branch explanation), each with a different error string. Not incorrect, but readers may find the overlap a bit redundant. Consider consolidating into a single clear explanation if you revisit this section.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/docs/content/docs/compute/domains.mdx` around lines 19 - 34, Consolidate
the repeated production-branch guidance in the domain commands section so it
explains the requirement once instead of three times. Update the prose around
the domain add example and the surrounding explanation in domains.mdx to merge
the general rule, the preview-only deploy note, and the --branch clarification
into a single concise paragraph while keeping the key behavior and error
condition clear.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@apps/docs/content/docs/compute/domains.mdx`:
- Around line 19-34: Consolidate the repeated production-branch guidance in the
domain commands section so it explains the requirement once instead of three
times. Update the prose around the domain add example and the surrounding
explanation in domains.mdx to merge the general rule, the preview-only deploy
note, and the --branch clarification into a single concise paragraph while
keeping the key behavior and error condition clear.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 47b2e635-4e25-4985-9e06-c0b4f5083378

📥 Commits

Reviewing files that changed from the base of the PR and between f74f219 and 77c51b0.

📒 Files selected for processing (1)
  • apps/docs/content/docs/compute/domains.mdx

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.

1 participant