hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 4f4cec73be40e7bd4cfcffb461e75e415db45821
parent da4866c2bebf68a400d6f569440d017245728450
Author: Joe Mooring <joe.mooring@veriphor.com>
Date:   Thu, 10 Feb 2022 16:00:54 -0800

Add HUGO_ENV to the os/exec environment

Closes #9490

Diffstat:
Mcommon/hugo/hugo.go | 1+
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/common/hugo/hugo.go b/common/hugo/hugo.go
@@ -109,6 +109,7 @@ func GetExecEnviron(workDir string, cfg config.Provider, fs afero.Fs) []string {
 	config.SetEnvVars(&env, "NODE_PATH", nodepath)
 	config.SetEnvVars(&env, "PWD", workDir)
 	config.SetEnvVars(&env, "HUGO_ENVIRONMENT", cfg.GetString("environment"))
+	config.SetEnvVars(&env, "HUGO_ENV", cfg.GetString("environment"))
 
 	if fs != nil {
 		fis, err := afero.ReadDir(fs, files.FolderJSConfig)