Skip to content

Commit

Permalink
Fix --renderStaticToDisk regression
Browse files Browse the repository at this point in the history
Fixes #11026
  • Loading branch information
bep committed May 27, 2023
1 parent 901cd97 commit 8f293a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion commands/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func (f *fileServer) createEndpoint(i int) (*http.ServeMux, net.Listener, string
}
var fs afero.Fs
f.c.withConf(func(conf *commonConfig) {
fs = conf.fs.PublishDir
fs = conf.fs.PublishDirServer
})

fi, err := fs.Stat(path)
Expand Down
1 change: 1 addition & 0 deletions testscripts/commands/server_render_static_to_disk.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ hugo server --renderStaticToDisk &
waitServer

httpget $HUGOTEST_BASEURL_0 'Title: Hugo Server Test' $HUGOTEST_BASEURL_0
httpget ${HUGOTEST_BASEURL_0}mystatic.txt 'This is a static file.'

! exists public/index.html
exists public/mystatic.txt
Expand Down

0 comments on commit 8f293a1

Please sign in to comment.