Tips to lower deploy time
My hugo repo has ~14000 pages and times out when deploying to Pages.
I tried enabling the build cache, but that hasn't helped.
Besides removing static pages, what best practices / configuration changes can I make to deploy my site without timing out?
Deployment ID: bb7a01d3-2969-4d71-95e6-4ec175e31b29
2 Replies
Pages' build caching does not yet support hugo, but they're working on it.
I was able to extend the timeout by adding a
timeout
value to my Hugo config
for example I'm using timeout: 6000000
, and my builds take around 12 minutes
In my experience, image processing makes hugo builds very slow.
Build caching will help a lot with that(discussion about build caching with hugo here: https://discord.com/channels/595317990191398933/1243286495016779828/1243886665588539443)
Discord
Discord - Group Chat That’s All Fun & Games
Discord is great for playing games and chilling with friends, or even building a worldwide community. Customize your own space to talk, play, and hang out.