about summary refs log tree commit diff stats
path: root/internal/server/server.go
diff options
context:
space:
mode:
authorAlan Pearce2024-06-28 18:21:57 +0200
committerAlan Pearce2024-06-28 18:22:39 +0200
commitcade05bffc5da4fa5b9ce1df93b4eb2abd246e73 (patch)
tree7cb27ae8d81697eec693a1e4d5966bc4a9bf7fad /internal/server/server.go
parent313f62584d7e5b59b9322442d0ee07a7526a0324 (diff)
downloadwebsite-cade05bffc5da4fa5b9ce1df93b4eb2abd246e73.tar.lz
website-cade05bffc5da4fa5b9ce1df93b4eb2abd246e73.tar.zst
website-cade05bffc5da4fa5b9ce1df93b4eb2abd246e73.zip
use pointers for builder configuration
Diffstat (limited to 'internal/server/server.go')
-rw-r--r--internal/server/server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/server/server.go b/internal/server/server.go
index aa979f4..044b64f 100644
--- a/internal/server/server.go
+++ b/internal/server/server.go
@@ -107,7 +107,7 @@ func serverHeaderHandler(wrappedHandler http.Handler) http.Handler {
 	})
 }
 
-func rebuild(builderConfig builder.IOConfig, config *cfg.Config) error {
+func rebuild(builderConfig *builder.IOConfig, config *cfg.Config) error {
 	r, err := builder.BuildSite(builderConfig, config)
 	if err != nil {
 		return errors.WithMessage(err, "could not build site")
@@ -146,7 +146,7 @@ func New(runtimeConfig *Config) (*Server, error) {
 	listenAddress := net.JoinHostPort(runtimeConfig.ListenAddress, strconv.Itoa(runtimeConfig.Port))
 	top := http.NewServeMux()
 
-	builderConfig := builder.IOConfig{
+	builderConfig := &builder.IOConfig{
 		Source:      "content",
 		Destination: runtimeConfig.Root,
 		Development: runtimeConfig.Development,