mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
Fix regression with site.IsServer when not running a server
Fixes #11006
This commit is contained in:
@@ -185,7 +185,7 @@ func (h *HugoSites) initRebuild(config *BuildCfg) error {
|
||||
return errors.New("rebuild does not support 'ResetState'")
|
||||
}
|
||||
|
||||
if !h.Configs.Base.Internal.Running {
|
||||
if !h.Configs.Base.Internal.Watch {
|
||||
return errors.New("rebuild called when not in watch mode")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user