Skip to content

Switch to LFS-supporting blob API #414

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 31, 2025
Merged

Conversation

denyskon
Copy link
Contributor

Switch from the raw file API to the media file API (https://gitea.com/api/swagger#/repository/repoGetRawFileOrLFS) for Gitea backing, which also directly supports retrieving LFS files. This de-facto enables LFS support for Gitea blobs.

There doesn't seem to be a similar endpoint for GitHub API.

@denyskon denyskon requested a review from kyoshino as a code owner May 31, 2025 09:42
Copy link
Member

@kyoshino kyoshino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

@kyoshino
Copy link
Member

Thanks!

@kyoshino kyoshino merged commit 25cc833 into sveltia:main May 31, 2025
@denyskon denyskon deleted the fix/gitea-lfs branch May 31, 2025 14:31
@kyoshino
Copy link
Member

Shipped the change with v0.79.1.

@denyskon
Copy link
Contributor Author

denyskon commented Jun 1, 2025

@kyoshino Maybe worth mentioning in the readme, supporting LFS for Gitea is an advantage over both Decap and Static CMS :)

@kyoshino
Copy link
Member

kyoshino commented Jun 2, 2025

Just updated the README! Looks like uploading to LFS was broken in Gitea 1.23, but it’s been fixed in 1.24 just in time for the Gitea support in Sveltia 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants