StaticJsCMS / static-cms

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

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

Closed ki9us closed 4 months ago

ki9us commented 4 months 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 4 months ago

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