Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'common/hugo/hugo.go')
-rw-r--r--common/hugo/hugo.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/hugo/hugo.go b/common/hugo/hugo.go
index c8db18afe..5bbfe7c65 100644
--- 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)