From f31f62dc9b2036bddf91dc9f99479773347acfaf Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 24 Jan 2025 23:55:49 +0100 Subject: dev: don't rebuild if root files changed --- internal/server/server.go | 4 ---- 1 file changed, 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) -- cgit 1.4.1