mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-13 20:24:00 +02:00
@@ -248,6 +248,11 @@ func (cc *hugoBuilderCommon) getEnvironment(isServer bool) string {
|
|||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Used by Netlify and Forestry
|
||||||
|
if v, found := os.LookupEnv("HUGO_ENV"); found {
|
||||||
|
return v
|
||||||
|
}
|
||||||
|
|
||||||
if isServer {
|
if isServer {
|
||||||
return hugo.EnvironmentDevelopment
|
return hugo.EnvironmentDevelopment
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user