How is this supposed to be set? I have HUGO_MEMORYLIMIT = 2
in hugo.toml, but a project pulling remote data into pages is taking close to 5-6GB of RAM freezing my laptop.
HUGO_MEMORYLIMIT is an operating system environment variable. It is not a key that you would use in your site configuration. See:
https://gohugo.io/getting-started/configuration/#configuration-environment-variables
An environment variable can be permanent, or you can set it via the command line before you run the executable.
Does hugo recognize env
files? ChatGPT says it doesn’t out of the box.
Yes, Hugo recognizes environment variables. That’s why we have two sections about them in the documentation.
Perhaps ChatGPT is referring to Hugo’s security policy which defines an allow list:
https://gohugo.io/about/security/#security-policy
I created one to run via bash. If there is a better way, please let me know.
Depends on OS, but with Ubuntu you can define them in your .profile or .bashrc file.
I am on Linux Mint (for a few weeks now). .bashsrc
works!
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.