keystatic
keystatic copied to clipboard
Admin UI does not load if GitHub App installed to empty repo
Description
Linking a Keystatic app to an brand new, uninitialized GItHub repo would cause the Admin UI to be completely blank.
Reproduction
- Create a Keystatic app and run it in development.
- Link it to a brand new repository. (I used an organization one but I don't think it matters)
- Try to access https://127.0.0.1/keystatic
I'm not sure I understand the use case where you'd want to do that. Keystatic in github
mode will read/write content from the GitHub repository directly, so it's a fair assumption to expect that repo to have a Keystatic project committed.
Do you have a use case/workflow where that's an issue and the code for the repo cannot be committed and pushed?
I'm not sure I understand the use case where you'd want to do that. Keystatic in
github
mode will read/write content from the GitHub repository directly, so it's a fair assumption to expect that repo to have a Keystatic project committed.Do you have a use case/workflow where that's an issue and the code for the repo cannot be committed and pushed?
When you create a Keystatic project for the first time.
i faced the same issue a hour ago and solved now. Based on my experience, there is few things you have to check:
- make sure that you already setup this https://keystatic.com/docs/github-mode#branch-prefix. Also dont forget to add your branchPrefix based on your github default branch. For me its
main
- create the repo name based on
keystatic.config.js
and make sure its not private - install the app into your repository
then your project is ready to go... 🚀
Yes, I think this experience should be improved so an error message shows you exactly what you need to do.