avitorio / outstatic

Outstatic - A static CMS for Next.js
https://Outstatic.com
MIT License
2.67k stars 157 forks source link

Once I add new collection, it doesn't show on the left sidebar #32

Closed leonace924 closed 1 year ago

leonace924 commented 1 year ago

image

It doesn't show Projects on the left sidebar I set all in the authorization

It shows this error

message

"Variable $input of type CreateCommitOnBranchInput! was provided invalid value for expectedHeadOid (Expected value to not be null)"

I am pushing to staging branch, and I test it on the localhost:3000

What did I do wrong?

Thanks

avitorio commented 1 year ago

Have you set the OST_REPO_BRANCH environment variable to staging?

leonace924 commented 1 year ago

image

Yes, this is my env file

avitorio commented 1 year ago

What version of Next.js are you on? And what version of outstatic?

leonace924 commented 1 year ago

I am on 12.3.1

image

avitorio commented 1 year ago

Try upgrading to outstatic@^0.0.30-rc - the OST_REPO_BRANCH feature was only added in this version.