-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hugo.Environment ignores HUGO_ENV used by Netlify and Forestry #6456
Comments
You can use |
Thanks for clarifying. It appears that both Netlify and Forestry use See |
You could start by removing the big BUG in the title, then, as this is obviously not that. |
hugo.Environment
ignores getenv "HUGO_ENV"
hugo.Environment
ignores getenv "HUGO_ENV"
used by Netlify and Forestry
hugo.Environment
ignores getenv "HUGO_ENV"
used by Netlify and Forestry
Currently, the official Hugo website only appears to mention I assume it would be beneficial to support |
Whereas there are only ~17 files on GitHub containing Perhaps you might find the above compelling enough to listen to the community on this one and warrant supporting |
+1 for supporting |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What version of Hugo are you using (
hugo version
)?v0.58.1
Does this issue reproduce with the latest release?
Yes
Problem
There are at least two ways to set the environment to development or production in Hugo.
Many users are reporting very confusing behavior to us in the way that
hugo.Environment
ignoresHUGO_ENV
.Surely, the following statement should be true if either
HUGO_ENV="production"
or if the-e production
argument is provided, otherwise this behavior can be very confusing to users:The text was updated successfully, but these errors were encountered: