about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2025-01-24 23:55:49 +0100
committerAlan Pearce2025-01-24 23:56:05 +0100
commitf31f62dc9b2036bddf91dc9f99479773347acfaf (patch)
tree697de1631a74cb54250c84c684c8b709a527f4df
parent2418364eca7f80f78717e66b9c1d1d56cd26503a (diff)
downloadwebsite-f31f62dc9b2036bddf91dc9f99479773347acfaf.tar.lz
website-f31f62dc9b2036bddf91dc9f99479773347acfaf.tar.zst
website-f31f62dc9b2036bddf91dc9f99479773347acfaf.zip
dev: don't rebuild if root files changed
-rw-r--r--internal/server/server.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/internal/server/server.go b/internal/server/server.go
index 0b67a69..b5526a0 100644
--- a/internal/server/server.go
+++ b/internal/server/server.go
@@ -164,10 +164,6 @@ func New(runtimeConfig *Config, log *log.Logger) (*Server, error) {
 				)
 			}
 		}
-		err = fw.Add(".")
-		if err != nil {
-			return nil, errors.WithMessage(err, "could not add directory to file watcher")
-		}
 		go fw.Start(func(filename string) {
 			log.Info("rebuilding site", "changed_file", filename)
 			err := rebuild(builderConfig, config, log)