hugolib: Fix server no watch

Closes #14615

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Joe Mooring
2026-03-12 18:31:12 -07:00
committed by Bjørn Erik Pedersen
parent 36cdb2c789
commit 59e0446fe5
2 changed files with 18 additions and 1 deletions
@@ -0,0 +1,17 @@
# Test the hugo server command with watch disabled.
hugo server --watch=false &
waitServer
httpget $HUGOTEST_BASEURL_0 'HOME'
httpget $HUGOTEST_BASEURL_0 'HOME'
stopServer
! stderr .
-- hugo.toml --
baseURL = 'https://example.org/'
disableKinds = ['page','rss','section','sitemap','taxonomy','term']
-- layouts/home.html --
HOME