Open tforster opened 3 years ago
Hi @tforster, I'm not sure where repositories
is coming from as we use repos
:
https://github.com/netlify/netlify-cms/blob/fc2e3106bbf6dea02be6842d285bc310c2479450/packages/netlify-cms-backend-github/src/API.ts#L202
Also when using the GitHub backend your configuration should be:
backend:
name: github
repo: tforster/netlify-poc
when using Netlify as an authentication provider per the docs.
When using an external authentication provider, you should configure it based on the instructions of the client you chose.
In any case, you should not use site_domain: cms.netlify.com
as the cms.netlify.com
authentication provider is only intended for local development.
Describe the bug Trying out Netflify CMS using the index.html demo page. Admin UI loads without issue but publishing content results in a 404 in the browser console
GET https://api.github.com/repositories/tforster/netlify-poc/branches/main 404
cURLing that endpoint also produces a 404. According to the GitHub docs repositories should be repos. cURLing the corrected URL returns the expected JSON response.
To Reproduce
Either navigate in a browser to the URL that Netflify CMS was trying to reach
https://api.github.com/repositories/tforster/netlify-poc/branches/main
or try the following
Applicable Versions: Have used both the following script references, all produce the same erroneous behaviour
CMS configuration