I noticed while working on the most recent newsletter that the size of the repo is starting to get a bit unwieldy - a fresh clone is 800MB (half of which is the index, half of which is the actual files).
Not only does this make it more of a pain for people to contribute, there is a hard 1GB limit on published GitHub Pages sites which we're eventually going to hit. The index wouldn't factor into that though (I hope...), so I don't think we're in imminent danger.
In general, Git is just not a good solution for storing lots of binary content, and I think we'll need to deal with this eventually if the newsletter is going to stick around long term (which I hope it does!)
Some potential fixes could be:
| Fix |
Pros |
Cons |
| Stop accepting GIFs (they take up the majority of the repo's space) |
Only a policy change, not a technical one. |
Would only slow down the issue, not fix it. |
| Move to a different hosting solution with a higher size cap (Netlify?) |
Wouldn't need changes to the site or to the workflow. |
Doesn't solve the repo size issue long term. |
| Host images externally (maybe on a CDN?) |
Wouldn't need changes to the site, minimal change to the workflow. |
Might make it more difficult for people to submit images. |
| Move away from Git-based hosting altogether |
Might be easier to edit the site through a CMS instead of markdown. |
Would require us to rethink the whole contribution workflow. |
| Something else I've not thought of? |
??? |
??? |
Don't think we need to deal with this immediately, but just wanted to start the conversation sooner rather than later 😄
I noticed while working on the most recent newsletter that the size of the repo is starting to get a bit unwieldy - a fresh clone is 800MB (half of which is the index, half of which is the actual files).
Not only does this make it more of a pain for people to contribute, there is a hard 1GB limit on published GitHub Pages sites which we're eventually going to hit. The index wouldn't factor into that though (I hope...), so I don't think we're in imminent danger.
In general, Git is just not a good solution for storing lots of binary content, and I think we'll need to deal with this eventually if the newsletter is going to stick around long term (which I hope it does!)
Some potential fixes could be:
Don't think we need to deal with this immediately, but just wanted to start the conversation sooner rather than later 😄