Thinkmill / Thinkmill/keystatic

branchPrefix on keystatic cloud not filtering the branch

Open
#1,136 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.4k
Forks
159
Avg merge
21h 41m
Merged PRs (30d)
2

Description

When i set branchPrefix with kind: "cloud" I can still see all the branches.

In my case I setted branchPrefix on the branch and I would like to be able to see only that branch when I navigate to the domain assiciated with that branch.

case example:

  • stage.xxx.com -> Develop -> I don't want to be able to swtich branch and I want to be able to edit only on that branch, so in that specific branch i set branchPrefix = develop
  • xxx.com -> Main -> I want to be able to edit content only on master and not other branches so i set branchPrefix = main for the main branch

Thanks

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the branchPrefix description in docs/src/content/pages/configuration.mdoc and trace how the cloud configuration is used for branch selection. Verify the behavior with separate develop and main branch prefixes; done means each domain shows and permits editing only its configured branch.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.