Commit e114f7e1 authored by Aral Balkan's avatar Aral Balkan

Fix bug where Hugo auto detection was failing when run as Nexe binary

parent fb29ccde
......@@ -310,7 +310,7 @@ class Site {
// to forward slashes when determining the mount path).
const hugoSourceFolderPrefixRegExp = /^.hugo(--)?/
const files = fs.readdirSync(this.pathToServe)
const files = fs.readdirSync(this.absolutePathToServe)
for (const file of files) {
if (file.match(hugoSourceFolderPrefixRegExp)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment