diff options
author | Alan Pearce | 2025-01-24 23:55:49 +0100 |
---|---|---|
committer | Alan Pearce | 2025-01-24 23:56:05 +0100 |
commit | f31f62dc9b2036bddf91dc9f99479773347acfaf (patch) | |
tree | 697de1631a74cb54250c84c684c8b709a527f4df | |
parent | 2418364eca7f80f78717e66b9c1d1d56cd26503a (diff) | |
download | website-f31f62dc9b2036bddf91dc9f99479773347acfaf.tar.lz website-f31f62dc9b2036bddf91dc9f99479773347acfaf.tar.zst website-f31f62dc9b2036bddf91dc9f99479773347acfaf.zip |
dev: don't rebuild if root files changed
-rw-r--r-- | internal/server/server.go | 4 |
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) |