The CLI decides whether a branch is the production branch by its name, not its role. toBranchKind in packages/cli/src/commands/service/target.ts returns production only for a branch named production or main, and the domain commands then refuse any other branch.
A project whose production branch has another name cannot manage custom domains. The API's branch record already carries a role field (read in packages/cli/src/lib/app/app-provider.ts), so the check can use it instead of the name.
Recorded in the prisma-cli-v8 project ledger, which is being deleted at project close-out:
|
- **The production branch is still resolved by name, not role.** |
🤖 Generated with Claude Code
The CLI decides whether a branch is the production branch by its name, not its role.
toBranchKindinpackages/cli/src/commands/service/target.tsreturns production only for a branch namedproductionormain, and the domain commands then refuse any other branch.A project whose production branch has another name cannot manage custom domains. The API's branch record already carries a
rolefield (read inpackages/cli/src/lib/app/app-provider.ts), so the check can use it instead of the name.Recorded in the prisma-cli-v8 project ledger, which is being deleted at project close-out:
prisma-cli/.drive/projects/prisma-cli-v8/deferred.md
Line 124 in 4356b36
🤖 Generated with Claude Code