Skip to content

Commit

Permalink
Add HUGO_ENV to the os/exec environment
Browse files Browse the repository at this point in the history
Closes #9490
  • Loading branch information
jmooring authored and bep committed Feb 11, 2022
1 parent da4866c commit 4f4cec7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/hugo/hugo.go
Expand Up @@ -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)
Expand Down

0 comments on commit 4f4cec7

Please sign in to comment.