Hi All,
I am looking into publishing Hugo site into netlify. The only issue is, that site have lots of images and the whole site is 15GB locally.
Its a bit confusing with GitHub, GitLab and BitBucket about storage limits.
Repo will be private, and most of them stating that private repos are unlimited, but other documents are saying different things. In 2020 most of this services revised storage limits, but their supporting documents haven’t been updated considering latest changes.
Could you advise best approach for publishing large Hugo site.
ps. individual files are below 500kB.
pps. if is off-topic, please point best place to ask this question.
I do not use the other Git providers you mentioned.
Another option would be to have a look at a service like Cloudinary to host the project’s media, it’s not cheap but they have a free plan with a 25 GB storage limit.
If your only problem is GitHub etc. repo limitations, you could consider partition your content/images into smaller GitHub repos and include them in the main repo using Hugo Modules. I do, however, remember vaguely that there may be an upper size limit per Hugo/Go module as well (I think 2GB), but there is no limitation to how many repos you can have.
Yes that works seamlessly. You can mount each module wherever you want it in /content, /static, /assets etc.
There are 2 ways, but I usually just point the modules I work on to a local folder using the replacements option (via OS env var when running Hugo server):