Skip to content

Custom-domain commands refuse a production branch that is not named production or main #292

Description

@wmadden-electric

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions