I am totally new to hugo, I just need to finish some job which using hugo to build static site in offline environment.
HTTP_PROXY
and HTTPS_PROXY
should work, replace http://127.0.0.1:1080
with yours.
$ export HTTP_PROXY=http://127.0.0.1:1080
$ export HTTPS_PROXY=http://127.0.0.1:1080
$ hugo
Tested on Linux.
EDITED:
Just noticed that
in offline environment.
Not sure if this help in your case.