aboutsummaryrefslogtreecommitdiffhomepage
path: root/commands/server.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2023-05-27 15:22:45 +0200
committerBjørn Erik Pedersen <[email protected]>2023-05-27 16:56:54 +0200
commit8f293a18557806b5370451c13ea8959e85962c9b (patch)
tree91925cc67d0d9bc3eb56bbb2b5a58311266e57bf /commands/server.go
parent901cd970dbeae4b69b2dae5fc3a3482a38117258 (diff)
downloadhugo-8f293a18557806b5370451c13ea8959e85962c9b.tar.gz
hugo-8f293a18557806b5370451c13ea8959e85962c9b.zip
Fix --renderStaticToDisk regression
Fixes #11026
Diffstat (limited to 'commands/server.go')
-rw-r--r--commands/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/server.go b/commands/server.go
index ad432037c..4669cf0b4 100644
--- a/commands/server.go
+++ b/commands/server.go
@@ -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)