StaticJsCMS / static-cms

A Git-based CMS for Static Site Generators
https://staticjscms.netlify.app/
MIT License
590 stars 53 forks source link

Gitea backend broken because because API endpoint doesn't exist (anymore?) #1121

Closed ki9us closed 1 month ago

ki9us commented 1 month ago

Essentially the same issue as decaporg/decap-cms#6997.

StaticCMS fails to load any collections and the dev console shows a 404 for https://{giteaDomain}/api/vi/repos/{owner}/{repo}/git/trees/{branch}:{path}

It doesn't look like this endpoint is supported (anymore?). The getTree endpoint takes a commit sha instead: https://{giteaDomain}/api/vi/repos/{owner}/{repo}/git/trees/{sha}.

ki9us commented 1 month ago

Fixed this in my reverse proxy. See my comment on the decap issue.