Timeout while deploying

My hugo repo has ~14000 pages and times out when deploying to Pages with the following error:


14:09:53.762 Uploading… (11253/14229)
14:10:55.720 Failed: build exceeded the time limit and was terminated.

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 the hugo site without timing out?


Each time you push new code to your Git repository, Pages will build and deploy your site.
Builds will timeout after 20 minutes.